Repository navigation
feat(instance): add cnpgi metrics capabilities to the instance webserver - #8033
Conversation
|
❗ By default, the pull request is configured to backport to all release branches.
|
af8dd17 to
a11995e
Compare
|
/test limit=local |
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/16269566998 |
metrics capabilities to the instance metrics webservermetrics capabilities to the instance webserver
7801cff to
732299f
Compare
6170595 to
4ded721
Compare
88f0d3e to
d22e10e
Compare
d22e10e to
f39d63a
Compare
f39d63a to
bcc2617
Compare
|
/test |
|
@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/16447086260 |
…s webserver Signed-off-by: Armando Ruocco <[email protected]> feat(instance,cnpgi): add `metrics` capabilities to the instance metrics webserver This commit makes it possible for the plugins to export metrics to the instance metrics webserver. This work will also enable future patches to integrate the metrics that we previously had with in tree barman but are now not present in the plugin Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
bcc2617 to
88bc3a6
Compare
Signed-off-by: Leonardo Cecchi <[email protected]>
|
/test limit=local |
|
@leonardoce, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/16467320928 |
|
I tested it manually and verified that a plugin is able to expose custom metrics. |
Introduce two new Prometheus metrics sourced from the Barman Cloud plugin: - `barman_cloud_cloudnative_pg_io_first_recoverability_point` - `barman_cloud_cloudnative_pg_io_last_available_backup_timestamp` These metrics supersede the following deprecated CNPG metrics: - `cnpg_collector_first_recoverability_point` - `cnpg_collector_last_available_backup_timestamp` Depends on: cloudnative-pg/cloudnative-pg#8033 Relates to: #380 Signed-off-by: Armando Ruocco <[email protected]> Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]>
Proposed solution
This commit allows the plugins to export metrics to the instance metrics web server.
This work will also enable future patches to integrate the metrics that we previously had with in-tree barman, but that are now absent from the plugin.
Requires cloudnative-pg/cnpg-i#219
Relates #7812
Alternate solution
Do not implement the metrics interface and require that the users scrape the sidecar containers directly