feat: add health check extension to OTel collector configuration

This commit is contained in:
Simon Larsen
2025-01-29 15:38:57 +00:00
parent 30edc194f4
commit b959e84032
2 changed files with 5 additions and 2 deletions

View File

@@ -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
@@ -81,7 +84,7 @@ service:
{{- end }}
{{ end }}
{{ end }}
extensions: [ headers_setter ]
extensions: [ headers_setter, health_check ]
pipelines:
traces:
receivers: [otlp]

View File

@@ -409,7 +409,7 @@ services:
options:
max-size: "1000m"
ports:
- 8810:8810
- 13133:13133 # Otel Collector Health Check Endpoint at /heath/status
fluentd:
networks: