Skip to content

Commit

Permalink
Add intial prometheus rules for cardinality analysis
Browse files Browse the repository at this point in the history
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
  • Loading branch information
ArthurSens committed Oct 27, 2022
1 parent e84bd1f commit b11e21e
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
# Licensed under the GNU Affero General Public License (AGPL).
# See License-AGPL.txt in the project root for license information.

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
app.kubernetes.io/name: cardinality-analisis
app.kubernetes.io/part-of: kube-prometheus
prometheus: k8s
role: alert-rules
name: cardinality-analisis-monitoring-rules
namespace: monitoring-satellite
spec:
groups:
- name: cardinality-analisis
rules:
- record: metrics_total
expr: count(count({__name__!=""}) by (__name__))

- record: __name__:timeseries_total
expr: count({__name__!=""}) by (__name__)

0 comments on commit b11e21e

Please sign in to comment.