Skip to content

Commit 616771e

Browse files
author
tony-landreth
committed
Updates pbackrest metrics
1 parent 8a0b982 commit 616771e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

internal/collector/generated/pgbackrest_metrics.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/collector/pgbackrest_metrics.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
backup->'database'->>'repo-key' AS repo,
3737
backup->>'type' AS backup_type,
3838
backup->'info'->'repository'->>'delta' AS repo_backup_size_bytes,
39-
# NOTE: The original query had a config_file attribute column that didn't work.
4039
backup->'info'->'repository'->>'size' AS repo_total_size_bytes,
4140
(backup->'timestamp'->>'stop')::bigint - (backup->'timestamp'->>'start')::bigint AS backup_runtime_seconds,
4241
CASE WHEN backup->>'error' = 'true' THEN 1 ELSE 0 END AS backup_error
@@ -102,9 +101,7 @@
102101
, ccp_backrest_last_full_backup
103102
, ccp_backrest_last_incr_backup
104103
, ccp_backrest_last_info
105-
, ccp_backrest_oldest_full_backup
106-
;
107-
104+
, ccp_backrest_oldest_full_backup;
108105
metrics:
109106
- metric_name: ccp_backrest_last_diff_backup_time_since_completion_seconds
110107
description: Seconds since the last completed full or differential backup. Differential is always based off last full.

0 commit comments

Comments
 (0)