From 74112e5f40c5cf26212a39498241e744dad0ff4d Mon Sep 17 00:00:00 2001 From: Marco Pracucci Date: Tue, 6 Jul 2021 11:40:10 +0200 Subject: [PATCH] Aded object storage metrics for Ruler and Alertmanager Signed-off-by: Marco Pracucci --- CHANGELOG.md | 4 +++- cortex-mixin/dashboards/alertmanager.libsonnet | 3 +++ cortex-mixin/dashboards/ruler.libsonnet | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c386591..86c6aed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ ## master / unreleased -* [ENHANCEMENT] Cortex-mixin: Include `cortex-gw-internal` naming variation in default `gateway` job names. #328 * [CHANGE] `namespace` template variable in dashboards now only selects namespaces for selected clusters. #311 * [CHANGE] Alertmanager: mounted overrides configmap to alertmanager too. #315 * [CHANGE] Memcached: upgraded memcached from `1.5.17` to `1.6.9`. #316 @@ -22,6 +21,9 @@ * [CHANGE] Removed `CortexQuerierCapacityFull` alert. #342 * [CHANGE] Changes blocks storage alerts to group metrics by the configured `cluster_labels` (supporting the deprecated `alert_aggregation_labels`). #351 * [ENHANCEMENT] cortex-mixin: Make `cluster_namespace_deployment:kube_pod_container_resource_requests_{cpu_cores,memory_bytes}:sum` backwards compatible with `kube-state-metrics` v2.0.0. #317 +* [ENHANCEMENT] Cortex-mixin: Include `cortex-gw-internal` naming variation in default `gateway` job names. #328 +* [ENHANCEMENT] Ruler dashboard: added object storage metrics. #354 +* [ENHANCEMENT] Alertmanager dashboard: added object storage metrics. #354 * [ENHANCEMENT] Added documentation text panels and descriptions to reads and writes dashboards. #324 * [ENHANCEMENT] Dashboards: defined container functions for common resources panels: containerDiskWritesPanel, containerDiskReadsPanel, containerDiskSpaceUtilization. #331 * [ENHANCEMENT] cortex-mixin: Added `alert_excluded_routes` config to exclude specific routes from alerts. #338 diff --git a/cortex-mixin/dashboards/alertmanager.libsonnet b/cortex-mixin/dashboards/alertmanager.libsonnet index fa5c6abf..b329ce6b 100644 --- a/cortex-mixin/dashboards/alertmanager.libsonnet +++ b/cortex-mixin/dashboards/alertmanager.libsonnet @@ -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') ), } diff --git a/cortex-mixin/dashboards/ruler.libsonnet b/cortex-mixin/dashboards/ruler.libsonnet index 070a80a9..bfa231b7 100644 --- a/cortex-mixin/dashboards/ruler.libsonnet +++ b/cortex-mixin/dashboards/ruler.libsonnet @@ -248,5 +248,8 @@ local utils = import 'mixin-utils/utils.libsonnet'; '{{ user }}' ) ) + ) + .addRows( + $.getObjectStoreRows('Ruler Configuration Object Store (Ruler accesses)', 'ruler-storage') ), }