Skip to content

Instantly share code, notes, and snippets.

@r0mdau
Last active July 13, 2022 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r0mdau/3d234467d98e79837230ebefda52d1bf to your computer and use it in GitHub Desktop.
Save r0mdau/3d234467d98e79837230ebefda52d1bf to your computer and use it in GitHub Desktop.
Prometheus cardinality stats

Prometheus cardinality stats queries:

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

Doc:

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)
@r0mdau
Copy link
Author

r0mdau commented Jul 13, 2022

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