Skip to content

Commit 743484a

Browse files
author
tony-landreth
committed
Add backup_type attribute to backrest metrics
1 parent 616771e commit 743484a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
- metric_name: ccp_backrest_last_info_backrest_repo_version
130130
description: pgBackRest version number when this backup was performed
131131
value_column: last_info_backrest_repo_version
132-
attribute_columns: ["repo"]
132+
attribute_columns: ["backup_type", "repo"]
133133
static_attributes:
134134
server: "localhost:5432"
135135
stanza: "db"
@@ -143,21 +143,21 @@
143143
- metric_name: ccp_backrest_last_info_backup_runtime_seconds
144144
description: Total runtime in seconds of this backup
145145
value_column: backup_runtime_seconds
146-
attribute_columns: ["repo"]
146+
attribute_columns: ["backup_type", "repo"]
147147
static_attributes:
148148
server: "localhost:5432"
149149
stanza: "db"
150150
- metric_name: ccp_backrest_last_info_repo_backup_size_bytes
151151
description: Actual size of only this individual backup in the pgbackrest repository
152152
value_column: repo_backup_size_bytes
153-
attribute_columns: ["repo"]
153+
attribute_columns: ["backup_type", "repo"]
154154
static_attributes:
155155
server: "localhost:5432"
156156
stanza: "db"
157157
- metric_name: ccp_backrest_last_info_repo_total_size_bytes
158158
description: Total size of this backup in the pgbackrest repository, including all required previous backups and WAL
159159
value_column: repo_total_size_bytes
160-
attribute_columns: ["repo"]
160+
attribute_columns: ["backup_type", "repo"]
161161
static_attributes:
162162
server: "localhost:5432"
163163
stanza: "db"

0 commit comments

Comments
 (0)