mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Push based monitoring issue/question #1367
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#1367
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 @crypticviper on GitHub (Sep 7, 2022).
Hello,
Thank you for your great work on this project. Found it extremely useful for setting up my monitoring dashboard. I had some questions/doubts regarding the setting up of the "Push" monitoring type. I couldn't find much info on this on the internet either so asking here (so this is not necessarily an issue).
Below is my monitor configuration
Type: Push
Push URL: https://mydomain/api/push/xxxxxxxxxx?status=up&msg=OK&ping=
Heartbeat Interval: 600
Retries: 0
Heartbeat Retry Interval: 600
I am then using this push URL in docker health check as below:
.....
healthcheck:
test: wget --tries=1 https://mydomain/api/push/xxxxxxxxxx?status=up&msg=OK&ping= || exit 1
interval: 600s
start_period: 5s
timeout: 10s
.....
This setup works fine. However, I frequently get indicators saying a service is down with an error message as follows (below is the log from uptime kuma docker container)
2022-09-07T07:52:47.180Z [MONITOR] WARN: Monitor #24 'My Test Service': Failing: No heartbeat in the time window | Interval: 600 seconds | Type: push | Down Count: 0 | Resend Interval: 0
However, if I check logs of the service health check it seems to have no issues calling the push endpoint. See below log (check timestamps - looks like uptime kuma error is reported a few milliseconds before the request was actually completed on the service container?). BTW, the timestamp in uptime kuma is in UTC while on service container is in my timezone.
One additional question:
Is this the right way to use the push monitoring mechanism? I didn't find any examples of using this so was just testing it this way.
@github-actions[bot] commented on GitHub (Sep 7, 2022):
@crypticviper: Hello! 👋
This issue is being automatically closed because it does not follow the issue template. Please DO NOT open a blank issue.