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

Warn on high description cardinality #1827

Open
moshloop opened this issue May 2, 2024 · 0 comments
Open

Warn on high description cardinality #1827

moshloop opened this issue May 2, 2024 · 0 comments

Comments

@moshloop
Copy link
Member

moshloop commented May 2, 2024

e.g. the following uses the message in the description (that maps to the endpoint prometheus label) causing cardinality explosion

apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: alertmanager-check
  labels:
    app: infra
spec:
  schedule: "@every 5m"
  alertmanager:
    - name: Prometheus
      icon: "prometheus"
      url: http://k8s-kube-prometheus-stack-alertmanager.monitoring.svc:9093/
      alerts:
        - .*
      ignore:
        - KubeScheduler.*
        - Watchdog
      transform:
        expr: |
          results.alerts.map(r,
             {
              'name': r.name,
              'labels': r.labels,
              'icon': 'prometheus',
              'message': r.message,
              'description': r.message,
            }
          ).toJSON()

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

No branches or pull requests

1 participant