Skip to content

Add more TSDB metrics for ingester to emit #3800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 9, 2021

Conversation

alvinlin123
Copy link
Contributor

Signed-off-by: Alvin Lin alvinlin@amazon.com

What this PR does:

This PR update the ingester to emit some metrics defined in TSDB's db.go.

I did not emit compaction related metrics because ingester already emit compaction metrics (prometheus_tsdb_compactions_total and prometheus_tsdb_compaction_duration_seconds) from TSDB's compactor, which is enough to get an over view of the compaction status.

For prometheus_tsdb_symbol_table_size_bytes and prometheus_tsdb_storage_blocks_bytes I decided to emit per user metric because it can help to identify "top talker" and react accordingly.

Which issue(s) this PR fixes:
Fixes #3799

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Alvin Lin <alvinlin@amazon.com>
Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. LGTM, with some nits.

Signed-off-by: Alvin Lin <alvinlin@amazon.com>
Signed-off-by: Alvin Lin <alvinlin@amazon.com>
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci merged commit 7273def into cortexproject:master Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ingester to emit TSDB metrics in tsdb/db.go
3 participants