'How can I query and plot amount of data points in prometheus series?

I have a prometheus event data series, and I want 2 charts:

  1. samples insertion rate
  2. samples amount in series at a given time

If I understand correctly, 1 is count(rate(my_series[$__rate_interval])) count is needed because in same tick all events could be differently labelled - this should count all samples to series inserted at this point

What is 2? it should be evergrowing thing - a chart of samples amount in db



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source