Hi,

In OpenMetrics protobuf each metric (i.e. each time series) has an optional
timestamp:

message MetricPoint {

  oneof value {
      UnknownValue unknown_value = 1;
      GaugeValue gauge_value = 2;
      CounterValue counter_value = 3;
      HistogramValue histogram_value = 4;
      StateSetValue state_set_value = 5;
      InfoValue info_value = 6;
      SummaryValue summary_value = 7;
  }

  google.protobuf.Timestamp timestamp = 8;
}

However, this is NOT the created timestamp. Counters, Histograms, and
Summaries have a created timestamp in addition to that:

message CounterValue {
  oneof total {
    double double_value = 1;
    uint64 int_value = 2;
  }
  google.protobuf.Timestamp created = 3;
  Exemplar exemplar = 4;
}

I'm struggling to understand why there are two timestamps. Can we remove
one of them?

Fabian

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/CAPX310jkgmFYkQZk3emDgCiV9V%2Bnu2WJYH5ytNBCFunSB-wOcg%40mail.gmail.com.

Reply via email to