instance_up check writing two records to instance_up table - affects alert routing #1428
Unanswered
jasonhill-ds
asked this question in
Q&A
Replies: 1 comment
|
This is not a bug. You see 2 rows because they are written by 2 different sub-systems:
If you want to get rid of the second one, you may increase |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
instance_up check writes two records to the instance_up table when a configured source is down. If the source is up it only writes a row that matches the original source.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect only a row as per pre-shutting down the monitored database. The issue is that grafana alerts that use the labels of the target database for routing end up not following the correct Notification Policies as there is a row that doesn't have the correct tags attached.
Screenshots

The monitored database from the pgwatch database:
Contents of pgwatch_metrics database instance_up table:

Desktop (please complete the following information):
Additional context
pgwatch build info:
Version info:
Version: v5.2.0
Config Schema: 00824
Sink Schema: 01180
Git Commit: 8a90e89
Built: 2026-05-04T13:01:56+02:00
All reactions