From 6cc7715330fffbd054f2289e55a7f82d60e43f15 Mon Sep 17 00:00:00 2001 From: Theo Brigitte Date: Thu, 14 Dec 2023 11:08:52 +0100 Subject: [PATCH] add Kubernetes API server request metrics --- .../templates/recording-rules/grafana-cloud.rules.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml b/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml index a414684dc..b547e152b 100644 --- a/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml +++ b/helm/prometheus-rules/templates/recording-rules/grafana-cloud.rules.yml @@ -169,6 +169,16 @@ spec: record: aggregation:kubernetes:apiserver_request_count - expr: sum(apiserver_request_duration_seconds_bucket) by (le, cluster_type, cluster_id) record: aggregation:kubernetes:apiserver_request_duration_seconds_bucket + - expr: apiserver_request_total + record: aggregation:kubernetes:apiserver_request_total + - expr: apiserver_request_aborts_total + record: aggregation:kubernetes:apiserver_request_aborts_total + - expr: apiserver_request_duration_seconds_bucket + record: aggregation:kubernetes:apiserver_request_duration_seconds_bucket + - expr: apiserver_request_duration_seconds_count + record: aggregation:kubernetes:apiserver_request_duration_seconds_count + - expr: apiserver_request_terminations_total + record: aggregation:kubernetes:apiserver_request_terminations_total - name: kubernetes.audit.grafana-cloud.recording rules: - expr: sum(apiserver_audit_event_total) by (cluster_type, cluster_id)