From 031cf2c8e26ae62ca4eca676181ce2cb04f1f241 Mon Sep 17 00:00:00 2001 From: YusifAghalar <41161340+YusifAghalar@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:16:49 +0400 Subject: [PATCH] Fixed an issue in the `otlp.exporter.prometheus` component (#2102) * Fixed an issue in the `otlp.exporter.prometheus` component * Fixed an issue in the `otlp.exporter.prometheus` component --- CHANGELOG.md | 7 +++++++ .../exporter/prometheus/internal/convert/convert.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55bd9e2bbb..b88f4c57f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ This document contains a historical list of changes between releases. Only changes that impact end-user behavior are listed; changes to documentation or internal API changes are not present. +v1.5.1 +----------------- + +### Bugfixes + +- Fixed issue with reloading configuration and prometheus metrics duplication in `prometheus.write.queue`. (@mattdurham) + v1.5.0 ----------------- diff --git a/internal/component/otelcol/exporter/prometheus/internal/convert/convert.go b/internal/component/otelcol/exporter/prometheus/internal/convert/convert.go index 364f94e6ce..ad3928bd64 100644 --- a/internal/component/otelcol/exporter/prometheus/internal/convert/convert.go +++ b/internal/component/otelcol/exporter/prometheus/internal/convert/convert.go @@ -339,7 +339,7 @@ func writeSeries(app storage.Appender, series *memorySeries, dp otelcolDataPoint series.SetTimestamp(ts) if dp.Flags().NoRecordedValue() { - val = float64(value.StaleNaN) + val = math.Float64frombits(value.StaleNaN) } series.SetValue(val)