Skip to content

Commit

Permalink
Ensure all http.server.duration metrics have the same description (op…
Browse files Browse the repository at this point in the history
  • Loading branch information
jlawrie authored and juliangiuca committed Apr 12, 2023
1 parent c0b037f commit e78f52e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/otelcollector/otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ processors:
batch:
spanmetrics:
metrics_exporter: prometheus
# temporary measure until description is fixed in .NET
transform:
metric_statements:
- context: metric
statements:
- set(description, "Measures the duration of inbound HTTP requests") where name == "http.server.duration"

service:
pipelines:
Expand All @@ -36,5 +42,5 @@ service:
exporters: [logging, otlp, otlphttp]
metrics:
receivers: [otlp]
processors: [batch]
processors: [transform, batch]
exporters: [prometheus, logging]

0 comments on commit e78f52e

Please sign in to comment.