This is called "backfilling":
https://medium.com/tlvince/prometheus-backfilling-a92573eb712c

However, it's critical that you remember that all metrics are in Prometheus 
are numeric float64 values.  Strings like "Alert-triggered" can only exist 
as labels on a timeseries.  You definitely *don't* want timestamps as 
labels, as this will cause a cardinality explosion - since the unique 
combination of labels defines a timeseries, you'll end up with a new 
timeseries for every data point.  If you don't understand this, then 
probably prometheus is not the database for you: you need an event database 
like Loki or Elasticsearch.

However it would be OK to represent date created and date closed as 
*numeric* values on a metric, the number of seconds since the epoch.

>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/5b1dcc98-72ed-4838-9b78-798eece7ab21n%40googlegroups.com.

Reply via email to