Skip to content

Commit c78c48f

Browse files
committed
doc: added Server Mode description
1 parent 2ef2776 commit c78c48f

File tree

1 file changed

+40
-4
lines changed

1 file changed

+40
-4
lines changed

documentation/metrics.md

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,7 +3907,41 @@ Default config:
39073907

39083908
*Replication metrics* use information from `pg_replication_slots`.
39093909

3910-
1. **Non-active Replication Slots**
3910+
3911+
1. **Server Mode**
3912+
3913+
Zabbix item:
3914+
<table>
3915+
<tr>
3916+
<th>Name</th>
3917+
<td>PostgreSQL: server mode</td>
3918+
</tr>
3919+
<tr>
3920+
<th>Key</th>
3921+
<td>pgsql.server_mode</td>
3922+
</tr>
3923+
<tr>
3924+
<th>Type</th>
3925+
<td>Text</td>
3926+
</tr>
3927+
<tr>
3928+
<th>Units</th>
3929+
<td></td>
3930+
</tr>
3931+
<tr>
3932+
<th>Delta</th>
3933+
<td>As Is</td>
3934+
</tr>
3935+
<tr>
3936+
<th>Supported Version</th>
3937+
<td>9.5+</td>
3938+
</tr>
3939+
</table>
3940+
3941+
*Server Mode* shows server status as `MASTER` or `STANDBY`.
3942+
3943+
3944+
2. **Non-active Replication Slots**
39113945

39123946
Zabbix item:
39133947
<table>
@@ -3940,7 +3974,7 @@ Default config:
39403974
*Non-active Replication Slots* calculates as count of slots with `false` active status.
39413975

39423976

3943-
2. **Streaming Replication Lag**
3977+
3. **Streaming Replication Lag**
39443978

39453979
Zabbix item:
39463980
<table>
@@ -4029,9 +4063,11 @@ Default config:
40294063

40304064
### Triggers
40314065

4032-
1. **PostgreSQL number of non-active replication slots on {HOSTNAME} (value={ITEM.LASTVALUE})**
4066+
1. **PostgreSQL server mode changed on {HOSTNAME} to {ITEM.LASTVALUE}**
4067+
4068+
2. **PostgreSQL number of non-active replication slots on {HOSTNAME} (value={ITEM.LASTVALUE})**
40334069

4034-
2. **PostgreSQL streaming lag too high on {HOSTNAME} (value={ITEM.LASTVALUE})**
4070+
3. **PostgreSQL streaming lag too high on {HOSTNAME} (value={ITEM.LASTVALUE})**
40354071
Triggers if *PostgreSQL: streaming replication lag* exceeds `lag_more_than_in_sec`.
40364072

40374073
### Temp Files

0 commit comments

Comments
 (0)