From 3dc4ca557eaa6763311c5909336e1370a1426b93 Mon Sep 17 00:00:00 2001 From: sumologic-sanyaku-apps Date: Thu, 11 Jul 2024 21:18:59 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20synced=20local=20'assets/conf.d/?= =?UTF-8?q?examples/'=20with=20remote=20'otelcol-examples/'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/conf.d/examples/haproxy.yaml.example | 25 ++++++++++++++++ assets/conf.d/examples/memcached.yaml.example | 30 +++++++++++++++++-- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/assets/conf.d/examples/haproxy.yaml.example b/assets/conf.d/examples/haproxy.yaml.example index 4e090c73..8d4d6337 100644 --- a/assets/conf.d/examples/haproxy.yaml.example +++ b/assets/conf.d/examples/haproxy.yaml.example @@ -1,4 +1,7 @@ receivers: + haproxy/localhost: + endpoint: localhost:8404/stats + collection_interval: 1m filelog/haproxy/localhost: storage: file_storage include_file_name: false @@ -24,9 +27,20 @@ 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 @@ -34,6 +48,17 @@ processors: 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 diff --git a/assets/conf.d/examples/memcached.yaml.example b/assets/conf.d/examples/memcached.yaml.example index 58c59f12..410a3eff 100644 --- a/assets/conf.d/examples/memcached.yaml.example +++ b/assets/conf.d/examples/memcached.yaml.example @@ -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 @@ -24,9 +28,20 @@ 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 @@ -34,14 +49,25 @@ processors: 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