Skip to content

Commit

Permalink
add httpcheck receiver example (open-telemetry#1162)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* add changelog

Signed-off-by: Alex Boten <[email protected]>

---------

Signed-off-by: Alex Boten <[email protected]>
Co-authored-by: Austin Parker <[email protected]>
  • Loading branch information
Alex Boten and austinlparker authored Oct 3, 2023
1 parent c6e0561 commit 92c93ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@ services:
depends_on:
- jaeger
logging: *logging
environment:
- ENVOY_PORT

# Prometheus
prometheus:
Expand Down
5 changes: 4 additions & 1 deletion src/otelcollector/otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ receivers:
allowed_origins:
- "http://*"
- "https://*"
httpcheck/frontendproxy:
targets:
- endpoint: http://frontendproxy:${env:ENVOY_PORT}

exporters:
logging:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 92c93ba

Please sign in to comment.