Skip to content

[Bug]: Missing Labels on "KubeletDown" Alert #1112

@Footur

Description

@Footur

What happened?

When the KubeletDown alert fires, the generated alert does not contain the expected labels (e.g., cluster ID). This makes it hard to identify the affected cluster.

Probable cause

The current PromQL query (absent(up{job="kubelet"} == 1)) does not guarantee that labels are present if the metric is absent.

Proposed fix
Replace the current query with:

absent_over_time(up{job="kubelet"}[5m])

This should only fire when the kubelet metric is missing for a full 5‑minute window, and it preserves the original labels.

What parts of the codebase are affected?

Alerts

I agree to the following terms:

  • I agree to follow this project's Code of Conduct.
  • I have filled out all the required information above to the best of my ability.
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have confirmed this bug exists in the default branch of the repository, as of the latest commit at the time of submission.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstale

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions