canonical / canonical/postgresql-operator

Patroni Exporter broken dashboard panels

Open
#1,566 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
20
Forks
36
Avg merge
4d 15h
Merged PRs (30d)
30

Description

## Steps to reproduce
1. Deploy the charm.
2. Open the Patroni Grafana dashboard.

## Expected behaviour
Patroni panels (`xlog_location`, etc.) should render correctly.

## Actual behaviour
Panels show no data. Prometheus and the OpenMetrics standard now automatically append `_total` to the name of any metric with the TYPE `counter`. The dashboard queries still use the legacy metric names.

## Versions

Juju CLI: N/A
Juju agent: N/A
Charm revision: N/A
LXD: N/A

## Log output
Juju debug log: N/A

## Additional context
**Proposal:**
Patch the Grafana dashboard JSON to comply with the OpenMetrics standard by updating the following queries:
* `patroni_xlog_location` -> `patroni_xlog_location_total`
* `patroni_xlog_received_location` -> `patroni_xlog_received_location_total`
* `patroni_xlog_replayed_location` -> `patroni_xlog_replayed_location_total`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.