Open dashpole opened 1 day ago
receiver/prometheus
Prometheus now parses the timestamp for us: https://github.com/prometheus/prometheus/pull/14356. We need to implement the CreatedTimestampAppender interface (with the AppendCTZeroSample method and AppendHistogramCTZeroSample methods) to get access to it.
AppendCTZeroSample
AppendHistogramCTZeroSample
We also need to set EnableCreatedTimestampZeroIngestion to true in the scrape manager for the AppendCT* methods to be called.
EnableCreatedTimestampZeroIngestion
We should remove the receiver.prometheusreceiver.UseCreatedMetric feature gate, and associated code after this is complete.
cc @open-telemetry/wg-prometheus
cc @ridwanmsharif since you are also interested in created timestamp support
Component(s)
receiver/prometheus
Describe the issue you're reporting
Prometheus now parses the timestamp for us: https://github.com/prometheus/prometheus/pull/14356. We need to implement the CreatedTimestampAppender interface (with the
AppendCTZeroSample
method andAppendHistogramCTZeroSample
methods) to get access to it.We also need to set
EnableCreatedTimestampZeroIngestion
to true in the scrape manager for the AppendCT* methods to be called.We should remove the receiver.prometheusreceiver.UseCreatedMetric feature gate, and associated code after this is complete.
cc @open-telemetry/wg-prometheus