Skip to content

Instantly share code, notes, and snippets.

Last active July 13, 2022 20:05
What would you like to do?
Prometheus cardinality stats

Prometheus cardinality stats queries:

sum(scrape_series_added) by (job)
sum(scrape_samples_scraped) by (job)


scrape_series_added{job="<job-name>", instance="<instance-id>"}: the approximate number of new series in this scrape.
scrape_samples_scraped{job="<job-name>", instance="<instance-id>"}: the number of samples the target exposed.
prometheus_tsdb_symbol_table_size_bytes (gauge): Size of symbol table on disk (in bytes)
Copy link

r0mdau commented Jul 13, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment