Skip to content

Commit ffb4ffb

Browse files
authored
docs: clarify observability metrics and migration to plugin-based ones (#621)
Improved the "Observability" section to better describe the Prometheus metrics exposed by the Barman Cloud Plugin via the instance manager. Added a mapping table in the "Verify your metrics" step to show the transition from in-core metrics (`cnpg_collector_*`) to the new plugin-based metrics (`barman_cloud_cloudnative_pg_io_*`). Closes #473 Closes cloudnative-pg/cloudnative-pg#8902 Signed-off-by: Gabriele Bartolini <[email protected]>
1 parent 054c384 commit ffb4ffb

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

.wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ ObjectMeta
3333
ObjectStore
3434
ObjectStoreSpec
3535
ObjectStoreStatus
36+
Observability
3637
PITR
3738
PoR
3839
PostgreSQL

web/docs/migration.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,18 @@ spec:
257257
barmanObjectName: minio-eu
258258
serverName: pg-eu
259259
```
260+
261+
## Step 5: Verify your metrics
262+
263+
When migrating from the in-core solution to the plugin-based approach, you need
264+
to monitor a different set of metrics, as described in the
265+
["Observability"](observability.md) section.
266+
267+
The table below summarizes the name changes between the old in-core metrics and
268+
the new plugin-based ones:
269+
270+
| Old metric name | New metric name |
271+
| ------------------------------------------------ | ---------------------------------------------------------------- |
272+
| `cnpg_collector_last_failed_backup_timestamp` | `barman_cloud_cloudnative_pg_io_last_failed_backup_timestamp` |
273+
| `cnpg_collector_last_available_backup_timestamp` | `barman_cloud_cloudnative_pg_io_last_available_backup_timestamp` |
274+
| `cnpg_collector_first_recoverability_point` | `barman_cloud_cloudnative_pg_io_first_recoverability_point` |

web/docs/observability.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
sidebar_position: 55
3+
---
4+
5+
# Observability
6+
7+
<!-- SPDX-License-Identifier: CC-BY-4.0 -->
8+
9+
The Barman Cloud Plugin exposes the following metrics through the native
10+
Prometheus exporter of the instance manager:
11+
12+
- `barman_cloud_cloudnative_pg_io_last_failed_backup_timestamp`:
13+
the UNIX timestamp of the most recent failed backup.
14+
15+
- `barman_cloud_cloudnative_pg_io_last_available_backup_timestamp`:
16+
the UNIX timestamp of the most recent successfully available backup.
17+
18+
- `barman_cloud_cloudnative_pg_io_first_recoverability_point`:
19+
the UNIX timestamp representing the earliest point in time from which the
20+
cluster can be recovered.
21+
22+
These metrics supersede the previously available in-core metrics that used the
23+
`cnpg_collector` prefix. The new metrics are exposed under the
24+
`barman_cloud_cloudnative_pg_io` prefix instead.

0 commit comments

Comments
 (0)