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 diff --git a/docker-compose.yml b/docker-compose.yml index 584e403129..beeb763a0a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -669,6 +669,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: