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

Clusterlabel support for Kubernetes alerts #893

Open
hoangphuocbk opened this issue Feb 20, 2024 · 1 comment
Open

Clusterlabel support for Kubernetes alerts #893

hoangphuocbk opened this issue Feb 20, 2024 · 1 comment
Labels
keepalive Use to prevent automatic closing stale

Comments

@hoangphuocbk
Copy link

Currently, when a Kubernetes alert is fired, for example KubePodCrashLooping, Clusterlabel is not mentioned in description
https://github.com/kubernetes-monitoring/kubernetes-mixin/blob/master/alerts/apps_alerts.libsonnet#L22

            annotations: {
              description: 'Pod {{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is in waiting state (reason: "CrashLoopBackOff").',
              summary: 'Pod is crash looping.',
            },
            'for': '15m',
            alert: 'KubePodCrashLooping',

IMO, we should add clusterLabel to know which Kubernetes cluster the alert is belonged to.

 description: 'Pod {{ $labels.clusterLabel }}/{{ $labels.namespace }}/{{ $labels.pod }} ({{ $labels.container }}) is in waiting state (reason: "CrashLoopBackOff").'
Copy link

github-actions bot commented Sep 5, 2024

This issue has not had any activity in the past 30 days, so the stale label has been added to it.

  • The stale label will be removed if there is new activity * The issue will be closed in 2 days if there is no new activity * Add the keepalive label to exempt this issue from the stale check action
    Thank you for your contributions!

@github-actions github-actions bot added the stale label Sep 5, 2024
@skl skl added the keepalive Use to prevent automatic closing label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keepalive Use to prevent automatic closing stale
Projects
None yet
Development

No branches or pull requests

2 participants