Skip to content
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

Add metric to measure rule group load time #5609

Merged

Conversation

rajagopalanand
Copy link
Contributor

@rajagopalanand rajagopalanand commented Oct 18, 2023

What this PR does:

This PR adds 2 metrics to track the following

  • Latency of loading rules from storage
  • Overall latency to load and sync rules

Checklist

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

pkg/ruler/ruler.go Outdated Show resolved Hide resolved
pkg/ruler/ruler.go Outdated Show resolved Hide resolved
pkg/ruler/ruler.go Show resolved Hide resolved
pkg/ruler/ruler.go Show resolved Hide resolved
@rajagopalanand rajagopalanand force-pushed the rulegroup-loadtime-metric branch 3 times, most recently from c1d3bbd to 3ff5102 Compare October 19, 2023 01:21
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

LGTM. Can you update changelog?

Signed-off-by: Anand Rajagopal <anrajag@amazon.com>
@rajagopalanand rajagopalanand force-pushed the rulegroup-loadtime-metric branch from 3ff5102 to dde22b9 Compare October 20, 2023 13:23
@yeya24 yeya24 merged commit fc61482 into cortexproject:master Oct 20, 2023
14 checks passed
@@ -1,6 +1,7 @@
# Changelog

## master / unreleased
* [CHANGE] Ruler: Add `cortex_ruler_rule_group_load_duration_seconds` and `cortex_ruler_rule_group_sync_duration_seconds` metrics. #5609
Copy link
Contributor

Choose a reason for hiding this comment

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

Well @rajagopalanand, I merged it too early. It is an enhancement, not a change.

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.

2 participants