Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelogs/fragments/459.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
minor_changes:
- sql_exporter - Removed the metric `ccp_backrest_last_info_repo_total_size_bytes`. When block incremental backups are enabled, this metric is no longer available from pgBackRest.
- postgres_exporter - Removed the metric `ccp_backrest_last_info_repo_total_size_bytes`.
- grafana - Removed the `Last Backup Size (Total)` panel from the pgBackRest Grafana dashboard since it was backed by the removed metric.
103 changes: 2 additions & 101 deletions grafana/postgres/PGBackrest.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "10.4.2",
"pluginVersion": "10.4.15",
"targets": [
{
"datasource": {
Expand Down Expand Up @@ -385,105 +385,6 @@
"x": 0,
"y": 11
},
"id": 8,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "10.4.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${ccp_datasource}"
},
"exemplar": true,
"expr": "ccp_backrest_last_info_repo_total_size_bytes{stanza=\"[[backrest_stanza]]\", repo=\"[[backrest_repo]]\"} + on(job,instance) group_left() (ccp_is_in_recovery_status == 2)",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "{{backup_type}}",
"refId": "A"
}
],
"title": "Last Backup Size (Total)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${ccp_datasource}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 11
},
"id": 9,
"options": {
"legend": {
Expand Down Expand Up @@ -622,6 +523,6 @@
"timezone": "",
"title": "pgBackRest",
"uid": "QtHwNCrik",
"version": 1,
"version": 2,
"weekStart": ""
}
2 changes: 0 additions & 2 deletions hugo/content/exporter/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,6 @@ Backup monitoring only covers pgBackRest at this time. These metrics only need t

* *ccp_backrest_last_info_repo_backup_size_bytes* - Actual size of only this individual backup in the pgbackrest repository

* *ccp_backrest_last_info_repo_total_size_bytes* - Total size of this backup in the pgbackrest repository, including all required previous backups and WAL

* *ccp_backrest_last_info_backup_error* - Count of errors tracked for this backup. Note this does not track incomplete backups, only errors encountered during the backup (checksum errors, file truncation, invalid headers, etc)

#### Per-Database Metrics
Expand Down
4 changes: 0 additions & 4 deletions postgres_exporter/linux/queries_backrest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ ccp_backrest_last_info:
, a.backup_data->'database'->>'repo-key' AS repo
, a.backup_data->>'type' AS backup_type
, a.backup_data->'info'->'repository'->>'delta' AS repo_backup_size_bytes
, a.backup_data->'info'->'repository'->>'size' AS repo_total_size_bytes
, (a.backup_data->'timestamp'->>'stop')::bigint - (a.backup_data->'timestamp'->>'start')::bigint AS backup_runtime_seconds
, CASE
WHEN a.backup_data->>'error' = 'true' THEN 1
Expand Down Expand Up @@ -64,9 +63,6 @@ ccp_backrest_last_info:
- repo_backup_size_bytes:
usage: "GAUGE"
description: "Actual size of only this individual backup in the pgbackrest repository"
- repo_total_size_bytes:
usage: "GAUGE"
description: "Total size of this backup in the pgbackrest repository, including all required previous backups and WAL"
- backup_runtime_seconds:
usage: "GAUGE"
description: "Total runtime in seconds of this backup"
Expand Down
11 changes: 0 additions & 11 deletions sql_exporter/common/crunchy_backrest_collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ metrics:
- repo
- backup_type
query_ref: ccp_backrest_last_info
- metric_name: ccp_backrest_last_info_repo_total_size_bytes
type: gauge
help: "Total size of this backup in the pgbackrest repository, including all required previous backups and WAL"
values: [repo_total_size_bytes]
key_labels:
- config_file
- stanza
- repo
- backup_type
query_ref: ccp_backrest_last_info
- metric_name: ccp_backrest_last_info_backup_runtime_seconds
type: gauge
help: "Total runtime in seconds of this backup"
Expand Down Expand Up @@ -107,7 +97,6 @@ queries:
, repo
, backup_type
, repo_backup_size_bytes
, repo_total_size_bytes
, backup_runtime_seconds
, backup_error
FROM pgmonitor_ext.ccp_backrest_last_info
Expand Down