Skip to content

Commit 2db5f29

Browse files
authored
[EXPORTER] Prometheus: Error on ingesting samples with different value but same timestamp (#2200)
1 parent 4cae6aa commit 2db5f29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exporters/prometheus/src/exporter_utils.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ std::vector<prometheus_client::MetricFamily> PrometheusExporterUtils::TranslateT
4444
prometheus_client::MetricFamily metric_family;
4545
metric_family.name = sanitized + "_" + unit;
4646
metric_family.help = metric_data.instrument_descriptor.description_;
47-
auto time = metric_data.start_ts.time_since_epoch();
47+
auto time = metric_data.end_ts.time_since_epoch();
4848
for (const auto &point_data_attr : metric_data.point_data_attr_)
4949
{
5050
auto kind = getAggregationType(point_data_attr.point_data);

0 commit comments

Comments
 (0)