Skip to content

fix(manifests): exclude 'config-reloader' container from 'Alertmanage…#2754

Merged
simonpasquier merged 1 commit intoprometheus-operator:mainfrom
sebastiangaiser:main
Oct 8, 2025
Merged

fix(manifests): exclude 'config-reloader' container from 'Alertmanage…#2754
simonpasquier merged 1 commit intoprometheus-operator:mainfrom
sebastiangaiser:main

Conversation

@sebastiangaiser
Copy link
Copy Markdown
Contributor

…rClusterDown' alert

Description

When Prometheus is not able to scrape the config-reloader but able to scrape Alertmanager itself, the alert would trigger a critical.

Type of change

What type of changes does your code introduce to the kube-prometheus? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Changelog entry

exclude 'config-reloader' container from 'AlertmanagerClusterDown' alert

@sebastiangaiser sebastiangaiser requested a review from a team as a code owner October 7, 2025 09:20
@simonpasquier
Copy link
Copy Markdown
Contributor

Thanks for the PR! The manifests are generated from the jsonnet sources so the change needs to go there:

alertmanagerSelector: 'job="alertmanager-' + defaults.name + '",namespace="' + defaults.namespace + '"',

I suggest to add container="alertmanager".

@sebastiangaiser sebastiangaiser force-pushed the main branch 2 times, most recently from 085e8c8 to e67643e Compare October 7, 2025 13:55
@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

Thanks for guiding me. Not sure if you want to have this in the same string or split up.

Copy link
Copy Markdown
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

@simonpasquier are the failing tests automatically rendered when merging to main or shall I added/fix them manually?

@simonpasquier
Copy link
Copy Markdown
Contributor

We have some tests which are flaky but they aren't required to merge.

@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

I'm asking because I can see e.g. this change:

-            up{job="alertmanager-main",namespace="monitoring"}
+            up{job="alertmanager-main",container="alertmanager",namespace="monitoring"}

in https://github.com/prometheus-operator/kube-prometheus/actions/runs/18316076233/job/52157369361?pr=2754#step:5:345

@simonpasquier
Copy link
Copy Markdown
Contributor

Ha! you need to run make generate and commit the changes to the manifests/ directory.

…rClusterDown' alert

When Prometheus is not able to scrape the config-reloader but able to scrape Alertmanager itself, the alert would trigger a critical.

Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

Should look better now

@sebastiangaiser
Copy link
Copy Markdown
Contributor Author

I think

		docs/weave-net-support.md:13: "https://stackoverflow.com/a/60447864" not accessible; status code 403: Forbidden
		developer-workspace/README.md:31: "https://www.gitpod.io/docs/browser-extension/" not accessible; status code 404: Not Found

is not on me. Thanks 🚀

Copy link
Copy Markdown
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@simonpasquier simonpasquier merged commit 1e456f8 into prometheus-operator:main Oct 8, 2025
10 of 11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants