Commit 0c1fc44
committed
receive: enable ExportCreatedMetric in OTLP translator
Without ExportCreatedMetric, the StartTimeUnixNano field on OTLP
counters and histograms was silently dropped during translation to
Prometheus remote write. This broke counter reset detection for
downstream systems that rely on the _created timestamp to distinguish
a genuine counter reset from a fresh series.
Setting ExportCreatedMetric: true in the otlptranslator.Settings causes
the translator to emit a <metric>_created series carrying the
StartTimeUnixNano value, matching the behaviour described in the
Prometheus exposition format spec.
Fixes #8637
Signed-off-by: Ali <alliasgher123@gmail.com>1 parent 519da47 commit 0c1fc44
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| |||
0 commit comments