So far, we have a promql query that shows the total amount of time series per metric (
count by (__name__)({__name__=~".+"})) and also per target(
scrape_samples_scraped). We also can take the total amount of chunk samples (prometheus_tsdb_compaction_chunk_samples_count).
I have a system that stores metrics into tsdb with different frequencies. This means that time series and number of samples are not proportional.
Is there any way of getting the total amount of samples of each metric?
Thanks!