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

/-/{healthy,ready}/ respond to HEAD #11160

Merged
merged 1 commit into from
Aug 16, 2022
Merged

/-/{healthy,ready}/ respond to HEAD #11160

merged 1 commit into from
Aug 16, 2022

Conversation

nicdumz
Copy link
Contributor

@nicdumz nicdumz commented Aug 15, 2022

Some frameworks issue HEAD requests to determine health.

This resolves #11159

Signed-off-by: Nicolas Dumazet nicdumz.commits@gmail.com

@juliusv
Copy link
Member

juliusv commented Aug 16, 2022

Interesting, thanks! I don't have much experience with HEAD requests in the wild, but https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD says, "A response to a HEAD method should not have a body.". Maybe just return the OK status code for HEAD and no message? (that then obviates the need for the message printer handler refactoring as well).

Some frameworks issue HEAD requests to determine health.

This resolves #11159

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>
@nicdumz
Copy link
Contributor Author

nicdumz commented Aug 16, 2022

Thanks Julius, I agree with you and I've updated the PR accordingly.

@juliusv
Copy link
Member

juliusv commented Aug 16, 2022

👍 Thanks!

@juliusv juliusv enabled auto-merge (squash) August 16, 2022 19:03
@juliusv juliusv merged commit 9594fa4 into prometheus:main Aug 16, 2022
nicdumz added a commit to nicdumz/alertmanager that referenced this pull request Aug 16, 2022
Some frameworks issue HEAD requests to determine health.

This is meant to be the alertmanager equivalent of prometheus/prometheus#11160

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>
Mama59 pushed a commit to Arnoways/prometheus that referenced this pull request Aug 25, 2022
Some frameworks issue HEAD requests to determine health.

This resolves prometheus#11159

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>
simonpasquier pushed a commit to prometheus/alertmanager that referenced this pull request Sep 9, 2022
Some frameworks issue HEAD requests to determine health.

This is meant to be the alertmanager equivalent of prometheus/prometheus#11160

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Dec 13, 2022
Some frameworks issue HEAD requests to determine health.

This is meant to be the alertmanager equivalent of prometheus/prometheus#11160

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>

Signed-off-by: Nicolas Dumazet <nicdumz.commits@gmail.com>
Signed-off-by: Yijie Qin <qinyijie@amazon.com>
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.

Management API: have /healthy/ and /ready/ respond to HEAD requests too
2 participants