From 74f302cf6bbe50594a18dba0c0b7f7b8e28519b2 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 3 Oct 2023 12:05:05 -0700 Subject: [PATCH 1/2] add httpcheck receiver example This PR adds the httpcheck receiver to the demo to produce a synthetic check against the frontendproxy endpoint. Signed-off-by: Alex Boten --- docker-compose.yml | 2 ++ src/otelcollector/otelcol-config.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index ab162f5639..546ae8f3ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -667,6 +667,8 @@ services: depends_on: - jaeger logging: *logging + environment: + - ENVOY_PORT # Prometheus prometheus: diff --git a/src/otelcollector/otelcol-config.yml b/src/otelcollector/otelcol-config.yml index 90e42db752..bfbea9f526 100644 --- a/src/otelcollector/otelcol-config.yml +++ b/src/otelcollector/otelcol-config.yml @@ -11,6 +11,9 @@ receivers: allowed_origins: - "http://*" - "https://*" + httpcheck/frontendproxy: + targets: + - endpoint: http://frontendproxy:${env:ENVOY_PORT} exporters: logging: @@ -43,7 +46,7 @@ service: processors: [batch] exporters: [logging, spanmetrics] metrics: - receivers: [otlp, spanmetrics] + receivers: [httpcheck/frontendproxy, otlp, spanmetrics] processors: [filter/ottl, transform, batch] exporters: [logging] logs: From 7b092ab1072a9b0606162d966952ada83c92a599 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 3 Oct 2023 12:07:29 -0700 Subject: [PATCH 2/2] add changelog Signed-off-by: Alex Boten --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf7c7e3a63..1199a1c200 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ release. ([#1146](https://github.com/open-telemetry/opentelemetry-demo/pull/1146)) * [prometheus] Enabled support for the OTLP write receiver ([#1149](https://github.com/open-telemetry/opentelemetry-demo/pull/1149)) +* [otelcol] add httpcheck receiver for synthetic check of frontendproxy + ([#1162](https://github.com/open-telemetry/opentelemetry-demo/pull/1162)) ## 1.5.0