Skip to content

Commit

Permalink
feat: add health check extension to OTel collector configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Jan 29, 2025
1 parent 30edc19 commit b959e84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion OTelCollector/otel-collector-config.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# This tempate file will be passed to gomplate to generate the final configuration file.

extensions:
health_check:
endpoint: "0.0.0.0:13133"
path: "/health/status"
headers_setter:
headers:
- action: upsert
Expand Down Expand Up @@ -81,7 +84,7 @@ service:
{{- end }}
{{ end }}
{{ end }}
extensions: [ headers_setter ]
extensions: [ headers_setter, health_check ]
pipelines:
traces:
receivers: [otlp]
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ services:
options:
max-size: "1000m"
ports:
- 8810:8810
- 13133:13133 # Otel Collector Health Check Endpoint at /heath/status

fluentd:
networks:
Expand Down

0 comments on commit b959e84

Please sign in to comment.