Skip to content

Commit

Permalink
🔄 synced file(s) with Sanyaku/apps (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: sumologic-sanyaku-apps <null>
  • Loading branch information
sumologic-sanyaku-apps authored Aug 29, 2024
1 parent 81f25fd commit b2e6bcf
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 5 deletions.
30 changes: 29 additions & 1 deletion assets/conf.d/examples/cassandra.yaml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
receivers:
jmx/cassandrametrics/localhost:
jar_path: /etc/otelcol-sumo/opentelemetry-jmx-metrics.jar
endpoint: localhost:11211
target_system: cassandra
collection_interval: 1m
log_level: info
filelog/cassandra/localhost:
storage: file_storage
include_file_name: false
Expand All @@ -24,6 +30,9 @@ processors:
- key: _contentType
value: OpenTelemetry
action: insert
- key: db.node.name
action: insert
from_attribute: host.name
- key: db.cluster.name
value: test
action: insert
Expand All @@ -32,16 +41,35 @@ processors:
- key: _source
value: cassandra/filelog
action: insert
resource/cassandra_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: cassandra/jmx
action: insert
- key: _sourceName
value: cassandra
action: insert
service:
pipelines:
metrics/cassandra/localhost:
receivers:
- jmx/cassandrametrics/localhost
processors:
- memory_limiter
- resourcedetection/system
- batch
- resource/cassandra_resource_attributes/localhost
- resource/cassandra_resource_attributes/metrics/localhost
exporters:
- sumologic
logs/cassandra/localhost:
receivers:
- filelog/cassandra/localhost
processors:
- memory_limiter
- resourcedetection/system
- resource/cassandra_resource_attributes/localhost
- batch
- resourcedetection/system
- resource/cassandra_resource_attributes/logs/localhost
exporters:
- sumologic
31 changes: 29 additions & 2 deletions assets/conf.d/examples/rabbitmq.yaml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
receivers:
rabbitmq/localhost:
endpoint: localhost:15672
collection_interval: 1m
username: admin
password: password
filelog/rabbitmq/localhost:
storage: file_storage
include_file_name: false
Expand All @@ -21,24 +26,46 @@ processors:
- key: _contentType
value: OpenTelemetry
action: insert
- key: messaging.node.name
action: insert
from_attribute: host.name
- key: messaging.cluster
value: test
action: insert
resource/rabbitmq_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: rabbitmq/rabbitmq
action: insert
- key: _sourceName
value: rabbitmq
action: insert
resource/rabbitmq_resource_attributes/logs/localhost:
attributes:
- key: _source
value: rabbitmq/filelog
action: insert
service:
pipelines:
metrics/rabbitmq/localhost:
receivers:
- rabbitmq/localhost
processors:
- memory_limiter
- resourcedetection/system
- batch
- resource/rabbitmq_resource_attributes/localhost
- resource/rabbitmq_resource_attributes/metrics/localhost
exporters:
- sumologic
logs/rabbitmq/localhost:
receivers:
- filelog/rabbitmq/localhost
processors:
- memory_limiter
- resource/rabbitmq_resource_attributes/localhost
- batch
- resourcedetection/system
- batch
- resource/rabbitmq_resource_attributes/localhost
- resource/rabbitmq_resource_attributes/logs/localhost
exporters:
- sumologic
38 changes: 36 additions & 2 deletions assets/conf.d/examples/redis.yaml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
receivers:
redis/localhost:
endpoint: localhost:6379
collection_interval: 1m
username: admin
password: password
metrics:
redis.cmd.calls:
enabled: true
redis.replication.replica_offset:
enabled: true
redis.role:
enabled: true
filelog/redis/localhost:
storage: file_storage
include_file_name: false
Expand All @@ -24,24 +36,46 @@ processors:
- key: _contentType
value: OpenTelemetry
action: insert
- key: db.node.name
action: insert
from_attribute: host.name
- key: db.cluster.name
value: test
action: insert
resource/redis_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: redis/redis
action: insert
- key: _sourceName
value: redis
action: insert
resource/redis_resource_attributes/logs/localhost:
attributes:
- key: _source
value: redis/filelog
action: insert
service:
pipelines:
metrics/redis/localhost:
receivers:
- redis/localhost
processors:
- memory_limiter
- resourcedetection/system
- batch
- resource/redis_resource_attributes/metrics/localhost
- resource/redis_resource_attributes/localhost
exporters:
- sumologic
logs/redis/localhost:
receivers:
- filelog/redis/localhost
processors:
- memory_limiter
- resource/redis_resource_attributes/localhost
- batch
- resourcedetection/system
- batch
- resource/redis_resource_attributes/localhost
- resource/redis_resource_attributes/logs/localhost
exporters:
- sumologic
30 changes: 30 additions & 0 deletions assets/conf.d/examples/tomcat.yaml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
receivers:
jmx/tomcatmetrics/localhost:
jar_path: /etc/otelcol-sumo/opentelemetry-jmx-metrics.jar
endpoint: localhost:11211
target_system: tomcat
collection_interval: 1m
username: sumo_jmx
password: safe_password
log_level: info
filelog/tomcat/access/localhost:
storage: file_storage
include_file_name: false
Expand Down Expand Up @@ -50,6 +58,9 @@ processors:
- key: webengine.system
value: tomcat
action: insert
- key: webengine.node.name
action: insert
from_attribute: host.name
- key: webengine.cluster.name
value: test
action: insert
Expand All @@ -58,8 +69,27 @@ processors:
- key: _source
value: tomcat/filelog
action: insert
resource/tomcat_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: tomcat/jmx
action: insert
- key: _sourceName
value: tomcat
action: insert
service:
pipelines:
metrics/tomcat/localhost:
receivers:
- jmx/tomcatmetrics/localhost
processors:
- memory_limiter
- resourcedetection/system
- batch
- resource/tomcat_resource_attributes/localhost
- resource/tomcat_resource_attributes/metrics/localhost
exporters:
- sumologic
logs/tomcat/localhost:
receivers:
- filelog/tomcat/access/localhost
Expand Down
42 changes: 42 additions & 0 deletions assets/conf.d/examples/vmwareopentelemetry.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
receivers:
vcenter/metrics/localhost:
endpoint: https://vcsaesxlab.com
username: vcenter_username1
password: vcenter_password1
collection_interval: 5m
tls:
insecure: true
insecure_skip_verify: true
processors:
resource/vmware_resource_attributes/localhost:
attributes:
- key: sumo.datasource
value: vmware
action: insert
- key: _contentType
value: OpenTelemetry
action: insert
- key: _sourceCategory
value: otel/vmware
action: insert
resource/vmware_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: vmware/vcenter
action: insert
- key: _sourceName
value: vmware
action: insert
service:
pipelines:
metrics/vmware/localhost:
receivers:
- vcenter/metrics/localhost
processors:
- memory_limiter
- resourcedetection/system
- batch
- resource/vmware_resource_attributes/localhost
- resource/vmware_resource_attributes/metrics/localhost
exporters:
- sumologic

0 comments on commit b2e6bcf

Please sign in to comment.