Skip to content

Commit

Permalink
🔄 synced local 'assets/conf.d/examples/' with remote 'otelcol-examples/'
Browse files Browse the repository at this point in the history
  • Loading branch information
sumologic-sanyaku-apps committed Jul 11, 2024
1 parent 7d31881 commit 3dc4ca5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
25 changes: 25 additions & 0 deletions assets/conf.d/examples/haproxy.yaml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
receivers:
haproxy/localhost:
endpoint: localhost:8404/stats
collection_interval: 1m
filelog/haproxy/localhost:
storage: file_storage
include_file_name: false
Expand All @@ -24,16 +27,38 @@ processors:
- key: webengine.system
value: haproxy
action: insert
- key: webengine.node.name
action: insert
from_attribute: host.name
- key: proxy.cluster
value: test
action: insert
resource/haproxy_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: haproxy/haproxy
action: insert
- key: _sourceName
value: haproxy
action: insert
resource/haproxy_resource_attributes/logs/localhost:
attributes:
- key: _source
value: haproxy/filelog
action: insert
service:
pipelines:
metrics/haproxy/localhost:
receivers:
- haproxy/localhost
processors:
- memory_limiter
- resourcedetection/system
- resource/haproxy_resource_attributes/metrics/localhost
- resource/haproxy_resource_attributes/localhost
- batch
exporters:
- sumologic
logs/haproxy/localhost:
receivers:
- filelog/haproxy/localhost
Expand Down
30 changes: 28 additions & 2 deletions assets/conf.d/examples/memcached.yaml.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
receivers:
memcached/localhost:
endpoint: localhost:11211
transport: tcp
collection_interval: 1m
filelog/memcached/localhost:
storage: file_storage
include_file_name: false
Expand All @@ -24,24 +28,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/memcached_resource_attributes/metrics/localhost:
attributes:
- key: _source
value: memcached/memcached
action: insert
- key: _sourceName
value: memcached
action: insert
resource/memcached_resource_attributes/logs/localhost:
attributes:
- key: _source
value: memcached/filelog
action: insert
service:
pipelines:
metrics/memcached/localhost:
receivers:
- memcached/localhost
processors:
- memory_limiter
- resourcedetection/system
- batch
- resource/memcached_resource_attributes/localhost
- resource/memcached_resource_attributes/metrics/localhost
exporters:
- sumologic
logs/memcached/localhost:
receivers:
- filelog/memcached/localhost
processors:
- memory_limiter
- resource/memcached_resource_attributes/localhost
- batch
- resourcedetection/system
- batch
- resource/memcached_resource_attributes/localhost
- resource/memcached_resource_attributes/logs/localhost
exporters:
- sumologic

0 comments on commit 3dc4ca5

Please sign in to comment.