-
Notifications
You must be signed in to change notification settings - Fork 45
/
320-pg_archiver.yml
55 lines (52 loc) · 1.65 KB
/
320-pg_archiver.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
##
# SYNOPSIS
# pg_archiver_*
#
# DESCRIPTION
# PostgreSQL archiver process statistics
#
# OPTIONS
# Tags [cluster]
# TTL 60
# Priority 0
# Timeout 100ms
# Fatal false
# Version 90400 ~ higher
# Source 320-pg_archiver.yml
#
# METRICS
# finish_count (COUNTER)
# Number of WAL files that have been successfully archived
# failed_count (COUNTER)
# Number of failed attempts for archiving WAL files
# last_finish_time (COUNTER)
# Time of the last successful archive operation
# last_failed_time (COUNTER)
# Time of the last failed archival operation
# reset_time (GAUGE)
# Time at which archive statistics were last reset
#
pg_archiver:
name: pg_archiver
desc: PostgreSQL archiver process statistics
query: SELECT archived_count AS finish_count, failed_count, last_archived_time AS last_finish_time, last_failed_time, extract(EPOCH FROM stats_reset) AS reset_time FROM pg_stat_archiver;
ttl: 60
min_version: 090400
tags:
- cluster
metrics:
- finish_count:
usage: COUNTER
description: Number of WAL files that have been successfully archived
- failed_count:
usage: COUNTER
description: Number of failed attempts for archiving WAL files
- last_finish_time:
usage: COUNTER
description: Time of the last successful archive operation
- last_failed_time:
usage: COUNTER
description: Time of the last failed archival operation
- reset_time:
usage: GAUGE
description: Time at which archive statistics were last reset