Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prometheusremotewrite: Don't generate target_info unless there are me…
…trics (open-telemetry#32318) **Description:** <Describe what has changed.> Modify `prometheusremotewrite.FromMetrics` to not generate `target_info` unless there are metrics, as you can't detect a timestamp otherwise. Currently, if there are no metrics, a `target_info` metric is generated with the Unix epoch for timestamp. **Link to tracking Issue:** <Issue number if applicable> See Mimir [issue](grafana/mimir#7272) where this was reported. **Testing:** I've added a test case for the bug. **Documentation:** <Describe the documentation added.> --------- Signed-off-by: Arve Knudsen <[email protected]> Co-authored-by: David Ashpole <[email protected]>
- Loading branch information