Re: [prometheus-developers] Adding timestamps to Gauge Metric

2021-08-29 Thread Stuart Clark
That very much depends on whatever tool you are using to display graphs. However it is sounding like Prometheus may not be the right system depending on what you are trying to do. Prometheus is a metric system, which works by sampling the current state of a system at regular time periods,

Re: [prometheus-developers] Adding timestamps to Gauge Metric

2021-08-29 Thread Ben Kochie
Yup, Prometheus is a monitoring system, not a general use time-series database. Specifically, Prometheus has a "look back window" where Prometheus will take the timestamp of your query and look back in time for samples to match. This is fundamental to how PromQL works. So no, what you are

Re: [prometheus-developers] Adding timestamps to Gauge Metric

2021-08-29 Thread Prince
So let's suppose we are monitoring an event in such a way that the logs of this event are in a file and there is some value for that event and correspondingly time at when we got that value. So in the Prometheus graph we can not show the value at that time Because I have a similar situation

Re: [prometheus-developers] Adding timestamps to Gauge Metric

2021-08-29 Thread Prince
Is it possible to give a custom timestamp in Prometheus for X-axis ? Example: I* am getting **my_metric_name *152.401 163013412 *at metric endpoint but in Prometheus graph, I am

Re: [prometheus-developers] Adding timestamps to Gauge Metric

2021-08-29 Thread Stuart Clark
The key things you just said were "event" and "logs", both of which are not the metrics that Prometheus is designed for. Now it is possible to convert events/logs into metrics, but this sounds different to what you are wanting. Metrics created from logs would have regularly scraped metrics