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

Add /blackbox endpoint #356

Merged
merged 4 commits into from
Apr 23, 2024
Merged

Add /blackbox endpoint #356

merged 4 commits into from
Apr 23, 2024

Conversation

kopiczko
Copy link
Member

@kopiczko kopiczko commented Apr 19, 2024

This is because we need to scrape something else than /healthz to scrape by blackbox_exporter. This is due the default backend https://kubernetes.github.io/ingress-nginx/user-guide/default-backend/. Full details in Slack https://gigantic.slack.com/archives/C02GLN41UP2/p1713534367484029

@kopiczko kopiczko marked this pull request as ready for review April 19, 2024 18:14
@kopiczko kopiczko requested a review from a team as a code owner April 19, 2024 18:14
Comment on lines +39 to +41
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
_, err := w.Write([]byte("ok"))
return microerror.Mask(err)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only important bit of this file and maybe BlackboxPath variable.

Copy link
Member

@ubergesundheit ubergesundheit left a comment

Choose a reason for hiding this comment

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

@kopiczko kopiczko merged commit 262b127 into main Apr 23, 2024
6 checks passed
@kopiczko kopiczko deleted the add-blackbox-endpoint branch April 23, 2024 17:08
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.

None yet

2 participants