@@ -3691,7 +3691,8 @@ Default config:
3691
3691
### Replication
3692
3692
3693
3693
Default config:
3694
-   ;  ;  ;  ;  ;  ;  ;  ; lag_more_than_in_sec = 300
3694
+   ;  ;  ;  ;  ;  ;  ;  ; lag_more_than_in_sec = 300\
3695
+   ;  ;  ;  ;  ;  ;  ;  ; critical_bytes_held_by_non_active_slot = 1073741824 bytes
3695
3696
3696
3697
### Items
3697
3698
@@ -3763,6 +3764,37 @@ Default config:
3763
3764
3764
3765
* Non-active Replication Slots* calculates as count of slots with ` false ` active status.
3765
3766
3767
+ - ** Bytes Held By Non-active Replication Slots**
3768
+
3769
+ Zabbix item:
3770
+ <table >
3771
+ <tr>
3772
+ <th>Name</th>
3773
+ <td>PostgreSQL Replication: Bytes held by non-active slot {#NON_ACTIVE_SLOT_NAME}</td>
3774
+ </tr>
3775
+ <tr>
3776
+ <th>Key</th>
3777
+ <td>pgsql.replication.non_active_slots_discovery[]</td>
3778
+ </tr>
3779
+ <tr>
3780
+ <th>Type</th>
3781
+ <td>Numeric (float)</td>
3782
+ </tr>
3783
+ <tr>
3784
+ <th>Units</th>
3785
+ <td>Bytes</td>
3786
+ </tr>
3787
+ <tr>
3788
+ <th>Delta</th>
3789
+ <td>As Is</td>
3790
+ </tr>
3791
+ <tr>
3792
+ <th>Supported Version</th>
3793
+ <td>10+</td>
3794
+ </tr>
3795
+ </table >
3796
+
3797
+ * Non-active Replication Slots* calculates as count of slots with ` false ` active status.
3766
3798
3767
3799
- ** Streaming Replication Lag**
3768
3800
@@ -3861,12 +3893,40 @@ Default config:
3861
3893
</tr>
3862
3894
</table >
3863
3895
3896
+ - ** PostgreSQL Replication: Non-active Slots Discovery**
3897
+
3898
+ Items:
3899
+ <table >
3900
+ <tr>
3901
+ <th>Name</th>
3902
+ <td>PostgreSQL Replication: Bytes held by non-active slot {#NON_ACTIVE_SLOT_NAME}</td>
3903
+ </tr>
3904
+ <tr>
3905
+ <th>Key</th>
3906
+ <td>pgsql.replication.non_active_slots_discovery[]</td>
3907
+ </tr>
3908
+ <tr>
3909
+ <th>Type</th>
3910
+ <td>Numeric (float)</td>
3911
+ </tr>
3912
+ <tr>
3913
+ <th>Units</th>
3914
+ <td>Bytes</td>
3915
+ </tr>
3916
+ <tr>
3917
+ <th>Delta</th>
3918
+ <td>As Is</td>
3919
+ </tr>
3920
+ </table >
3921
+
3864
3922
### Triggers
3865
3923
3866
3924
- ** PostgreSQL Instance: server mode has been changed on {HOSTNAME} to {ITEM.LASTVALUE}**
3867
3925
3868
3926
- ** PostgreSQL number of non-active replication slots on {HOSTNAME} (value={ITEM.LASTVALUE})**
3869
-
3927
+ Disabled by default
3928
+ - ** PostgreSQL Replication: bytes held by slot {#NON_ACTIVE_SLOT_NAME} is too high (value={ITEM.LASTVALUE})**
3929
+ Triggers if * PostgreSQL Replication: Bytes held by non-active slot {#NON_ACTIVE_SLOT_NAME}* exceeds ` critical_bytes_held_by_non_active_slot ` .
3870
3930
- ** PostgreSQL streaming lag too high on {HOSTNAME} (value={ITEM.LASTVALUE})**
3871
3931
Triggers if * PostgreSQL Replication: Streaming Replication Lag* exceeds ` lag_more_than_in_sec ` .
3872
3932
0 commit comments