-
Notifications
You must be signed in to change notification settings - Fork 126
Prometheus-Sink - Tags missing #759
Description
Describe the bug
When using Prom as a sink, tags (labels in Prometheus) seem to be missing from the pgWatch output. This does not happen with all metrics.
To Reproduce
Steps to reproduce the behavior:
- Add Tag to Target in pgWatch
- Configure pgWatch for prometheus Sink
- Check Prom-Sink-Endpoint for
- See error
curl http://.....:9188/metrics | grep instance_up
pgwatch_instance_up{dbname="instance1"} 1 1747052580658
pgwatch_instance_up{dbname="instance12"} 1 1747052580658
pgwatch_wal_timeline{cluster_name="cluster1",dbname="instance1",sys_id="xyz"} 20 1747052597056
pgwatch_wal_timeline{cluster_name="cluster1",dbname="instance2",sys_id="xyz"} 20 1747052597033
Expected behavior
I expect that the tags are correctly stored in all metrics, not just in a few.
**Version info:
Version:
DB Schema: 00179
Git Commit: f0949f9
Built: 2025-03-25T10:49:31+01:00
Additional context
Add any other context about the problem here.