Skip to content

Prometheus-Sink - Tags missing #759

@Schmaetz

Description

@Schmaetz

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:

  1. Add Tag to Target in pgWatch
  2. Configure pgWatch for prometheus Sink
  3. Check Prom-Sink-Endpoint for
  4. 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.

Metadata

Metadata

Assignees

Labels

metricsMetrics related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions