You needed a very high resolution graph to see all those samples. Note
that for a graph, a range query is performed, see
https://prometheus.io/docs/prometheus/latest/querying/api/#range-queries
The step parameter in this query is chosen to match the resolution of
the graph (or even longer if you aren't interested in rendering as
many points as your screen has pixels). I doubt that any grafing
frontend will ever query a step of shorter than 1s.
In any case, you just get one point per step, and it will be the most
recent sample before each point in time.
If you want to inspect the samples actually in the TSDB, you can use
the following trick:
- Go to the "Table" view of the Prometheus Graph UI.
- Type a query like the following:
metric_name{name:"abc"}[10m]
- You'll see essentially a dump of all the samples in the last 10m.
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in