Skip to content

Commit c72dbfe

Browse files
feat: add kafka metrics exporter (#3158)
* feat: add kafka metrics exporter Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> * chore: update lint Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> * chore: update CHANGELOG Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> * feat: switch to using kafkametricsreceiver Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> --------- Signed-off-by: Gerard Vanloo <gerard.vanloo@ibm.com> Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
1 parent 6b9c58e commit c72dbfe

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ the release.
77

88
## Unreleased
99

10-
* [product-catalog] Enrich DB spans and metrics with `server.address` and `server.port`
11-
attributes extracted from the DSN via `otelsql.AttributesFromDSN`
12-
([#3154](https://github.com/open-telemetry/opentelemetry-demo/pull/3154))
1310
* [accounting] fix memory leak with dbcontext
1411
([#2876](https://github.com/open-telemetry/opentelemetry-demo/pull/2876))
1512
* [chore] Upgrade OTel Collector to v0.145.0 with :warning: breaking change:
@@ -34,6 +31,11 @@ the release.
3431
180m for fraud-detection to prevent large heap size that causes
3532
OOMKills with k8s.
3633
([#3105](https://github.com/open-telemetry/opentelemetry-demo/pull/3105))
34+
* [product-catalog] Enrich DB spans and metrics with `server.address` and `server.port`
35+
attributes extracted from the DSN via `otelsql.AttributesFromDSN`
36+
([#3154](https://github.com/open-telemetry/opentelemetry-demo/pull/3154))
37+
* [otelcollector] add kafkametricsreceiver
38+
([#3158](https://github.com/open-telemetry/opentelemetry-demo/pull/3158))
3739
* [load-generator] Wait for Roof Binoculars image to load in web tasks, and fix
3840
task failures due to missing `tracer` attribute
3941
([#3171](https://github.com/open-telemetry/opentelemetry-demo/pull/3171))

src/otel-collector/otelcol-config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ receivers:
2222
endpoint: unix:///var/run/docker.sock
2323
# https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/44511
2424
api_version: "1.44"
25+
kafkametrics:
26+
scrapers:
27+
- brokers
28+
- topics
29+
- consumers
30+
brokers:
31+
- ${KAFKA_ADDR}
32+
collection_interval: 10s
2533
postgresql:
2634
endpoint: ${POSTGRES_HOST}:${POSTGRES_PORT}
2735
username: root
@@ -208,7 +216,7 @@ service:
208216
processors: [resourcedetection, memory_limiter, transform/sanitize_spans]
209217
exporters: [otlp_grpc/jaeger, debug, spanmetrics]
210218
metrics:
211-
receivers: [docker_stats, httpcheck/frontend-proxy, hostmetrics, nginx, otlp, postgresql, redis, spanmetrics]
219+
receivers: [docker_stats, httpcheck/frontend-proxy, hostmetrics, nginx, otlp, postgresql, redis, spanmetrics, kafkametrics]
212220
processors: [resourcedetection, memory_limiter]
213221
exporters: [otlp_http/prometheus, debug]
214222
logs:

0 commit comments

Comments
 (0)