@@ -60,9 +60,9 @@ Reports the desired file count, as specified by the `retention-count` setting in
60
60
61
61
Reports the actual file count.
62
62
63
- When purging is enabled, this count will usually be equal to the [ target] ( #backmon_backup_file_count_aim ) .
63
+ When purging is enabled, this count will usually be equal to the [ target] ( #backmon_backup_file_count_max ) .
64
64
65
- ### ` backmon_backup_file_age_aim_seconds `
65
+ ### ` backmon_backup_file_age_max_seconds `
66
66
67
67
This is equal to the converted ` retention-age ` parameter in seconds from the [
68
68
` backup_definitions.yaml ` ] ( backup-definition/overview )
@@ -116,21 +116,22 @@ have the same value/timestamp.
116
116
117
117
The following table shows which labels are defined for each metric.
118
118
119
- | Metric | disk | dir | file | group |
120
- | :---------------------------------------------| :----:| :---:| :----:| :-----:|
121
- | ` backmon_definition_status ` | ✓ | - | - | - |
122
- | ` backmon_backup_file_count_aim ` | ✓ | ✓ | ✓ | - |
123
- | ` backmon_backup_file_count ` | ✓ | ✓ | ✓ | ✓ |
124
- | ` backmon_backup_file_age_aim_seconds ` | ✓ | ✓ | ✓ | - |
125
- | ` backmon_backup_file_young_count ` | ✓ | ✓ | ✓ | ✓ |
126
- | ` backmon_backup_latest_creation_aim_seconds ` | ✓ | ✓ | ✓ | - |
127
- | ` backmon_backup_latest_creation_seconds ` | ✓ | ✓ | ✓ | ✓ |
128
- | ` backmon_backup_latest_creation_duration ` | ✓ | ✓ | ✓ | ✓ |
129
- | ` backmon_backup_latest_file_born_at_timestamp_seconds ` | ✓ | ✓ | ✓ | ✓ |
130
- | ` backmon_backup_latest_file_modified_at_timestamp_seconds ` | ✓ | ✓ | ✓ | ✓ |
131
- | ` backmon_backup_latest_file_archived_at_timestamp_seconds ` | ✓ | ✓ | ✓ | ✓ |
132
- | ` backmon_backup_latest_creation_seconds ` | ✓ | ✓ | ✓ | ✓ |
133
- | ` backmon_backup_latest_size_bytes ` | ✓ | ✓ | ✓ | ✓ |
119
+ | Metric | disk | dir | file | group |
120
+ | :-----------------------------------------------------------------------| :----:| :---:| :----:| :-----:|
121
+ | ` backmon_definition_status ` | ✓ | - | - | - |
122
+ | ` backmon_disk_usage_bytes ` | ✓ | - | - | - |
123
+ | ` backmon_disk_quota_bytes ` | ✓ | - | - | - |
124
+ | ` backmon_backup_file_count_max ` | ✓ | ✓ | ✓ | - |
125
+ | ` backmon_backup_file_count ` | ✓ | ✓ | ✓ | ✓ |
126
+ | ` backmon_file_count_total ` | ✓ | ✓ | ✓ | ✓ |
127
+ | ` backmon_backup_file_age_max_seconds ` | ✓ | ✓ | ✓ | - |
128
+ | ` backmon_backup_file_young_count ` | ✓ | ✓ | ✓ | ✓ |
129
+ | ` backmon_backup_latest_file_creation_expected_at_timestamp_seconds ` | ✓ | ✓ | ✓ | - |
130
+ | ` backmon_backup_latest_file_creation_duration ` | ✓ | ✓ | ✓ | ✓ |
131
+ | ` backmon_backup_latest_file_born_at_timestamp_seconds ` | ✓ | ✓ | ✓ | ✓ |
132
+ | ` backmon_backup_latest_file_modified_at_timestamp_seconds ` | ✓ | ✓ | ✓ | ✓ |
133
+ | ` backmon_backup_latest_file_archived_at_timestamp_seconds ` | ✓ | ✓ | ✓ | ✓ |
134
+ | ` backmon_backup_latest_size_bytes ` | ✓ | ✓ | ✓ | ✓ |
134
135
135
136
## Sample output from the ` /api/metrics ` endpoint
136
137
@@ -141,24 +142,24 @@ backmon_disks_total 0
141
142
# HELP backmon_environments_total Total number of environments
142
143
# TYPE backmon_environments_total gauge
143
144
backmon_environments_total 1
144
- # HELP backmon_backup_file_age_aim_seconds The maximum age (in seconds) that any file in this group should reach.
145
- # TYPE backmon_backup_file_age_aim_seconds gauge
146
- backmon_backup_file_age_aim_seconds {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump"} 0
145
+ # HELP backmon_backup_file_age_max_seconds The maximum age (in seconds) that any file in this group should reach.
146
+ # TYPE backmon_backup_file_age_max_seconds gauge
147
+ backmon_backup_file_age_max_seconds {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump"} 0
147
148
# HELP backmon_backup_file_count The amount of backup files present in this group.
148
149
# TYPE backmon_backup_file_count gauge
149
150
backmon_backup_file_count{dir="postgres",disk="samples/1.postgres-dumps",file="pgdump",group="backups"} 4
150
- # HELP backmon_backup_file_count_aim The amount of backup files expected to be present in this group.
151
- # TYPE backmon_backup_file_count_aim gauge
152
- backmon_backup_file_count_aim {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump"} 0
151
+ # HELP backmon_backup_file_count_max The amount of backup files expected to be present in this group.
152
+ # TYPE backmon_backup_file_count_max gauge
153
+ backmon_backup_file_count_max {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump"} 0
153
154
# HELP backmon_backup_file_young_count The amount of backup files in this group that are younger than the maximum age (file_age_aim_seconds).
154
155
# TYPE backmon_backup_file_young_count gauge
155
156
backmon_backup_file_young_count{dir="postgres",disk="samples/1.postgres-dumps",file="pgdump",group="backups"} 0
156
- # HELP backmon_backup_latest_creation_aim_seconds Unix timestamp on which the latest backup in the corresponding file group should have occurred.
157
- # TYPE backmon_backup_latest_creation_aim_seconds gauge
158
- backmon_backup_latest_creation_aim_seconds {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump"} 1.6581852e+09
159
- # HELP backmon_backup_latest_creation_seconds Unix timestamp on which the latest backup in the corresponding file group was created.
160
- # TYPE backmon_backup_latest_creation_seconds gauge
161
- backmon_backup_latest_creation_seconds {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump",group="backups"} 1.658182599e+09
157
+ # HELP backmon_backup_latest_file_creation_expected_at_timestamp_seconds Unix timestamp on which the latest backup in the corresponding file group should have occurred.
158
+ # TYPE backmon_backup_latest_file_creation_expected_at_timestamp_seconds gauge
159
+ backmon_backup_latest_file_creation_expected_at_timestamp_seconds {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump"} 1.6581852e+09
160
+ # HELP backmon_backup_latest_file_created_at_timestamp_seconds Unix timestamp on which the latest backup in the corresponding file group was created.
161
+ # TYPE backmon_backup_latest_file_created_at_timestamp_seconds gauge
162
+ backmon_backup_latest_file_created_at_timestamp_seconds {dir="postgres",disk="samples/1.postgres-dumps",file="pgdump",group="backups"} 1.658182599e+09
162
163
# HELP backmon_backup_latest_file_archived_at_timestamp_seconds Unix timestamp on which the latest file has been archived
163
164
# TYPE backmon_backup_latest_file_archived_at_timestamp_seconds gauge
164
165
backmon_backup_latest_file_archived_at_timestamp_seconds{dir="postgres",disk="samples/1.postgres-dumps",file="pgdump",group="backups"} 1.381818188e+09
0 commit comments