mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-24 22:45:56 +03:00
[GH-ISSUE #577] Allow custom replies as opposed to static OK #423
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#423
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @piramiday on GitHub (Oct 21, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/577
at present, the web URLs return a static
OK.it might be useful for certain situations to be able to customize the success message returned by HealthChecks in order to specify something else, i.e. a static message which can be different for each check.
(dumb) example:
let's think of a check to make sure my RSS feeds are working.
since the Healthcheck URL does not return a valid RSS feed, my client will not let me store it as a custom feed.
if Healthcheck could pretend to return a valid RSS (empty) feed, then my client could accept it and I would have a robust way of knowing that my client is fetching feeds as necessary.
@cuu508 commented on GitHub (Oct 22, 2021):
Interesting idea, thanks for the suggestion!
I would prefer if there was no additional configuration on the server side. Instead, the client could specify the preferred format in URL somehow. For example, if the normal ping URL is
A variation for RSS, and, say, 1x1 transparent GIF could be perhaps:
@piramiday commented on GitHub (Oct 22, 2021):
in this configuration, what would the server respond to the client GETting the
https://hc-ping.com/XXX.rssURL?something along the lines of:
and so on?
@cuu508 commented on GitHub (Dec 19, 2022):
I'm not planning to work on this feature. I think there are niche use-cases where it would be useful, but they seem too niche to warrant the extra complexity (not so much code complexity, but the documentation and the API surface area).
Possible workarounds –
Self-hosted instances can perhaps configure the reverse proxy to rewrite responses and/or add response headers. For nginx, for example, there is http://nginx.org/en/docs/http/ngx_http_sub_module.html
For the hosted service, one could write a lambda function (or cloudflare worker or whatever) that wraps a ping endpoint and modifies its response. It's an extra hassle, but it's an option.