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

Aded object storage metrics for Ruler and Alertmanager #354

Conversation

pracucci
Copy link
Collaborator

@pracucci pracucci commented Jul 6, 2021

What this PR does:
The Ruler and Alertmanager keeps the config in the object storage, but we don't show the object storage metrics in the Ruler and Alertmanager dashboard. This PR fixes it.

Example:

Screenshot 2021-07-06 at 11 38 53

Screenshot 2021-07-06 at 11 38 40

Which issue(s) this PR fixes:
N/A

Checklist

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

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci requested a review from a team as a code owner July 6, 2021 09:41
@@ -83,5 +83,8 @@ local utils = import 'mixin-utils/utils.libsonnet';
$.panel('Latency') +
utils.latencyRecordingRulePanel('cortex_request_duration_seconds', $.jobSelector($._config.job_names.gateway) + [utils.selector.re('route', 'api_v1_alerts|alertmanager')])
)
)
.addRows(
$.getObjectStoreRows('Alertmanager Configuration Object Store (Alertmanager accesses)', 'alertmanager-storage')
Copy link
Contributor

Choose a reason for hiding this comment

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

out of curiosity, what's the second argument of this function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The "component" exposing the metrics, which is the name of the internal component using the object store client (used to differentiate all clients when running in single binary mode).

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice. TIL.

Copy link
Contributor

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

LGTM

@pracucci pracucci merged commit 0b75ccd into main Jul 6, 2021
@pracucci pracucci deleted the add-object-storage-metrics-to-ruler-and-alertmanager-dashboards branch July 6, 2021 12:38
simonswine pushed a commit to grafana/mimir that referenced this pull request Oct 18, 2021
…-storage-metrics-to-ruler-and-alertmanager-dashboards

Aded object storage metrics for Ruler and Alertmanager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants