From 296561c381b2f22e4285a466076915f5a5ea9b62 Mon Sep 17 00:00:00 2001 From: Lam Tran Date: Tue, 23 Apr 2024 18:26:19 +0700 Subject: [PATCH] feat(otelcol): add redisreceiver (#1537) * chore(otelcol): add redisreceiver * chore: update changelog --------- Co-authored-by: Juliano Costa --- CHANGELOG.md | 2 ++ src/otelcollector/otelcol-config.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93e8e93f58..e3fabbbe25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ the release. ([#1522](https://github.com/open-telemetry/opentelemetry-demo/pull/1522)) * [frontend] Pass down image optimization requests to imageprovider ([#1522](https://github.com/open-telemetry/opentelemetry-demo/pull/1522)) +* [otelcollector] Add `redisreceiver` + ([#1537](https://github.com/open-telemetry/opentelemetry-demo/pull/1537)) ## 1.9.0 diff --git a/src/otelcollector/otelcol-config.yml b/src/otelcollector/otelcol-config.yml index afe2d712e1..a6aebeb293 100644 --- a/src/otelcollector/otelcol-config.yml +++ b/src/otelcollector/otelcol-config.yml @@ -13,6 +13,9 @@ receivers: httpcheck/frontendproxy: targets: - endpoint: http://frontendproxy:${env:ENVOY_PORT} + redis: + endpoint: "redis-cart:6379" + collection_interval: 10s exporters: debug: @@ -44,7 +47,7 @@ service: processors: [batch] exporters: [otlp, debug, spanmetrics] metrics: - receivers: [httpcheck/frontendproxy, otlp, spanmetrics] + receivers: [httpcheck/frontendproxy, redis, otlp, spanmetrics] processors: [batch] exporters: [otlphttp/prometheus, debug] logs: