Drop healthcheck traces

This commit is contained in:
Andrew Dryga
2023-09-21 14:17:28 -06:00
parent 5e63ce0015
commit c6ec7ab2db
2 changed files with 9 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ locals {
},
{
name = "OTLP_ENDPOINT",
value = "http://127.0.0.1:4318"
value = "http://localhost:4318"
},
{
name = "OTEL_RESOURCE_ATTRIBUTES"

View File

@@ -27,19 +27,24 @@ write_files:
resourcedetection:
detectors: [gcp]
timeout: 10s
filter/drophttp:
error_mode: ignore
traces:
span:
- 'attributes["http.target"] == "/healthz"'
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
processors: [memory_limiter, filter/drophttp, batch]
exporters: [googlecloud]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
processors: [memory_limiter, filter/drophttp, batch]
exporters: [googlecloud]
logs:
receivers: [otlp]
processors: [memory_limiter, batch]
processors: [memory_limiter, filter/drophttp, batch]
exporters: [googlecloud]
- path: /etc/systemd/system/otel-collector.service