Skip to content

Commit

Permalink
Fixed an issue in the otlp.exporter.prometheus component (#2102)
Browse files Browse the repository at this point in the history
* Fixed an issue in the `otlp.exporter.prometheus` component

* Fixed an issue in the `otlp.exporter.prometheus` component
  • Loading branch information
YusifAghalar authored Nov 19, 2024
1 parent ac24a10 commit dc9ec03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Main (unreleased)
### Bugfixes

- Fixed an issue in the `prometheus.exporter.postgres` component that would leak goroutines when the target was not reachable (@dehaansa)
- Fixed an issue in the `otelcol.exporter.prometheus` component that would set series value incorrectly for stale metrics (@YusifAghalar)

- Fixed issue with reloading configuration and prometheus metrics duplication in `prometheus.write.queue`. (@mattdurham)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dc9ec03

Please sign in to comment.