Skip to content

Commit b2e6bcf

Browse files
🔄 synced file(s) with Sanyaku/apps (#100)
Co-authored-by: sumologic-sanyaku-apps <null>
1 parent 81f25fd commit b2e6bcf

File tree

5 files changed

+166
-5
lines changed

5 files changed

+166
-5
lines changed

‎assets/conf.d/examples/cassandra.yaml.example‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
receivers:
2+
jmx/cassandrametrics/localhost:
3+
jar_path: /etc/otelcol-sumo/opentelemetry-jmx-metrics.jar
4+
endpoint: localhost:11211
5+
target_system: cassandra
6+
collection_interval: 1m
7+
log_level: info
28
filelog/cassandra/localhost:
39
storage: file_storage
410
include_file_name: false
@@ -24,6 +30,9 @@ processors:
2430
- key: _contentType
2531
value: OpenTelemetry
2632
action: insert
33+
- key: db.node.name
34+
action: insert
35+
from_attribute: host.name
2736
- key: db.cluster.name
2837
value: test
2938
action: insert
@@ -32,16 +41,35 @@ processors:
3241
- key: _source
3342
value: cassandra/filelog
3443
action: insert
44+
resource/cassandra_resource_attributes/metrics/localhost:
45+
attributes:
46+
- key: _source
47+
value: cassandra/jmx
48+
action: insert
49+
- key: _sourceName
50+
value: cassandra
51+
action: insert
3552
service:
3653
pipelines:
54+
metrics/cassandra/localhost:
55+
receivers:
56+
- jmx/cassandrametrics/localhost
57+
processors:
58+
- memory_limiter
59+
- resourcedetection/system
60+
- batch
61+
- resource/cassandra_resource_attributes/localhost
62+
- resource/cassandra_resource_attributes/metrics/localhost
63+
exporters:
64+
- sumologic
3765
logs/cassandra/localhost:
3866
receivers:
3967
- filelog/cassandra/localhost
4068
processors:
4169
- memory_limiter
70+
- resourcedetection/system
4271
- resource/cassandra_resource_attributes/localhost
4372
- batch
44-
- resourcedetection/system
4573
- resource/cassandra_resource_attributes/logs/localhost
4674
exporters:
4775
- sumologic

‎assets/conf.d/examples/rabbitmq.yaml.example‎

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
receivers:
2+
rabbitmq/localhost:
3+
endpoint: localhost:15672
4+
collection_interval: 1m
5+
username: admin
6+
password: password
27
filelog/rabbitmq/localhost:
38
storage: file_storage
49
include_file_name: false
@@ -21,24 +26,46 @@ processors:
2126
- key: _contentType
2227
value: OpenTelemetry
2328
action: insert
29+
- key: messaging.node.name
30+
action: insert
31+
from_attribute: host.name
2432
- key: messaging.cluster
2533
value: test
2634
action: insert
35+
resource/rabbitmq_resource_attributes/metrics/localhost:
36+
attributes:
37+
- key: _source
38+
value: rabbitmq/rabbitmq
39+
action: insert
40+
- key: _sourceName
41+
value: rabbitmq
42+
action: insert
2743
resource/rabbitmq_resource_attributes/logs/localhost:
2844
attributes:
2945
- key: _source
3046
value: rabbitmq/filelog
3147
action: insert
3248
service:
3349
pipelines:
50+
metrics/rabbitmq/localhost:
51+
receivers:
52+
- rabbitmq/localhost
53+
processors:
54+
- memory_limiter
55+
- resourcedetection/system
56+
- batch
57+
- resource/rabbitmq_resource_attributes/localhost
58+
- resource/rabbitmq_resource_attributes/metrics/localhost
59+
exporters:
60+
- sumologic
3461
logs/rabbitmq/localhost:
3562
receivers:
3663
- filelog/rabbitmq/localhost
3764
processors:
3865
- memory_limiter
39-
- resource/rabbitmq_resource_attributes/localhost
40-
- batch
4166
- resourcedetection/system
67+
- batch
68+
- resource/rabbitmq_resource_attributes/localhost
4269
- resource/rabbitmq_resource_attributes/logs/localhost
4370
exporters:
4471
- sumologic

‎assets/conf.d/examples/redis.yaml.example‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
receivers:
2+
redis/localhost:
3+
endpoint: localhost:6379
4+
collection_interval: 1m
5+
username: admin
6+
password: password
7+
metrics:
8+
redis.cmd.calls:
9+
enabled: true
10+
redis.replication.replica_offset:
11+
enabled: true
12+
redis.role:
13+
enabled: true
214
filelog/redis/localhost:
315
storage: file_storage
416
include_file_name: false
@@ -24,24 +36,46 @@ processors:
2436
- key: _contentType
2537
value: OpenTelemetry
2638
action: insert
39+
- key: db.node.name
40+
action: insert
41+
from_attribute: host.name
2742
- key: db.cluster.name
2843
value: test
2944
action: insert
45+
resource/redis_resource_attributes/metrics/localhost:
46+
attributes:
47+
- key: _source
48+
value: redis/redis
49+
action: insert
50+
- key: _sourceName
51+
value: redis
52+
action: insert
3053
resource/redis_resource_attributes/logs/localhost:
3154
attributes:
3255
- key: _source
3356
value: redis/filelog
3457
action: insert
3558
service:
3659
pipelines:
60+
metrics/redis/localhost:
61+
receivers:
62+
- redis/localhost
63+
processors:
64+
- memory_limiter
65+
- resourcedetection/system
66+
- batch
67+
- resource/redis_resource_attributes/metrics/localhost
68+
- resource/redis_resource_attributes/localhost
69+
exporters:
70+
- sumologic
3771
logs/redis/localhost:
3872
receivers:
3973
- filelog/redis/localhost
4074
processors:
4175
- memory_limiter
42-
- resource/redis_resource_attributes/localhost
43-
- batch
4476
- resourcedetection/system
77+
- batch
78+
- resource/redis_resource_attributes/localhost
4579
- resource/redis_resource_attributes/logs/localhost
4680
exporters:
4781
- sumologic

‎assets/conf.d/examples/tomcat.yaml.example‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
receivers:
2+
jmx/tomcatmetrics/localhost:
3+
jar_path: /etc/otelcol-sumo/opentelemetry-jmx-metrics.jar
4+
endpoint: localhost:11211
5+
target_system: tomcat
6+
collection_interval: 1m
7+
username: sumo_jmx
8+
password: safe_password
9+
log_level: info
210
filelog/tomcat/access/localhost:
311
storage: file_storage
412
include_file_name: false
@@ -50,6 +58,9 @@ processors:
5058
- key: webengine.system
5159
value: tomcat
5260
action: insert
61+
- key: webengine.node.name
62+
action: insert
63+
from_attribute: host.name
5364
- key: webengine.cluster.name
5465
value: test
5566
action: insert
@@ -58,8 +69,27 @@ processors:
5869
- key: _source
5970
value: tomcat/filelog
6071
action: insert
72+
resource/tomcat_resource_attributes/metrics/localhost:
73+
attributes:
74+
- key: _source
75+
value: tomcat/jmx
76+
action: insert
77+
- key: _sourceName
78+
value: tomcat
79+
action: insert
6180
service:
6281
pipelines:
82+
metrics/tomcat/localhost:
83+
receivers:
84+
- jmx/tomcatmetrics/localhost
85+
processors:
86+
- memory_limiter
87+
- resourcedetection/system
88+
- batch
89+
- resource/tomcat_resource_attributes/localhost
90+
- resource/tomcat_resource_attributes/metrics/localhost
91+
exporters:
92+
- sumologic
6393
logs/tomcat/localhost:
6494
receivers:
6595
- filelog/tomcat/access/localhost
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
receivers:
2+
vcenter/metrics/localhost:
3+
endpoint: https://vcsaesxlab.com
4+
username: vcenter_username1
5+
password: vcenter_password1
6+
collection_interval: 5m
7+
tls:
8+
insecure: true
9+
insecure_skip_verify: true
10+
processors:
11+
resource/vmware_resource_attributes/localhost:
12+
attributes:
13+
- key: sumo.datasource
14+
value: vmware
15+
action: insert
16+
- key: _contentType
17+
value: OpenTelemetry
18+
action: insert
19+
- key: _sourceCategory
20+
value: otel/vmware
21+
action: insert
22+
resource/vmware_resource_attributes/metrics/localhost:
23+
attributes:
24+
- key: _source
25+
value: vmware/vcenter
26+
action: insert
27+
- key: _sourceName
28+
value: vmware
29+
action: insert
30+
service:
31+
pipelines:
32+
metrics/vmware/localhost:
33+
receivers:
34+
- vcenter/metrics/localhost
35+
processors:
36+
- memory_limiter
37+
- resourcedetection/system
38+
- batch
39+
- resource/vmware_resource_attributes/localhost
40+
- resource/vmware_resource_attributes/metrics/localhost
41+
exporters:
42+
- sumologic

0 commit comments

Comments
 (0)