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

Fix indentation in CCM ServiceMonitor #315

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

rickardsjp
Copy link
Contributor

How to categorize this PR?

/area monitoring
/kind bug
/platform equinix-metal

What this PR does / why we need it:
The honorLabels, authorization, scheme, and tlsConfig fields are part of the Endpoint API, not the Spec. This indentation error caused the prometheus-operator to generate a scrape job configuration that specified http instead of https (because the scheme field was "missing". This in turn caused CCM-down alerts to fire because the scrape failed with a 400 error.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:
FYI: I haven't tested this in the extension setup yet.
/cc @istvanballok @hendrikKahl
FYI @rfranzke

Release note:

Fixes a monitoring configuration issue that caused false CCM-down alerts to fire.

The `honorLabels`, `authorization`, `scheme`, and `tlsConfig` fields are
part of the Endpoint API, not the Spec. This indentation error caused the
prometheus-operator to generate a scrape job configuration that specified
http instead of https (because the scheme field was "missing". This in turn
caused CCM-down alerts to fire because the scrape failed with a 400 error.
@gardener-robot gardener-robot added needs/review Needs review area/monitoring Monitoring (including availability monitoring and alerting) related kind/bug Bug platform/equinix-metal Equinix Metal platform/infrastructure (previously Packet) size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Jun 10, 2024
Copy link
Member

@istvanballok istvanballok left a comment

Choose a reason for hiding this comment

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

/lgtm

based on similar PRs for the other provider extensions, with @rickardsjp.

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Jun 10, 2024
Copy link
Collaborator

@RiRa12621 RiRa12621 left a comment

Choose a reason for hiding this comment

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

lgtm

@RiRa12621
Copy link
Collaborator

/lgtm

@RiRa12621 RiRa12621 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Oct 16, 2024
@ci-shared-oss-pipeline-0 ci-shared-oss-pipeline-0 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Oct 16, 2024
@RiRa12621 RiRa12621 merged commit 7ee6abb into gardener:master Oct 21, 2024
6 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/monitoring Monitoring (including availability monitoring and alerting) related kind/bug Bug needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/equinix-metal Equinix Metal platform/infrastructure (previously Packet) reviewed/lgtm Has approval for merging size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants