Skip to content

Commit

Permalink
Update the timeline perfstat for cluster_has_replica
Browse files Browse the repository at this point in the history
  • Loading branch information
blogh committed Sep 28, 2023
1 parent ea8541d commit 14c1175
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ Usage: check_patroni cluster_has_replica [OPTIONS]
Perfdata:
* healthy_replica & unhealthy_replica count
* the number of sync_replica, they are included in the previous count
* the lag of each replica labelled with "member name"_lag
* a boolean to tell if the node is a sync stanbdy labelled with "member name"_sync
* the lag of each replica labelled with "member name"_lag
* the timeline of each replica labelled with "member name"_timeline
* a boolean to tell if the node is a sync stanbdy labelled with "member name"_sync
Options:
-w, --warning TEXT Warning threshold for the number of healthy replica
Expand Down
5 changes: 3 additions & 2 deletions check_patroni/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,9 @@ def cluster_has_replica(
Perfdata:
* healthy_replica & unhealthy_replica count
* the number of sync_replica, they are included in the previous count
* the lag of each replica labelled with "member name"_lag
* a boolean to tell if the node is a sync stanbdy labelled with "member name"_sync
* the lag of each replica labelled with "member name"_lag
* the timeline of each replica labelled with "member name"_timeline
* a boolean to tell if the node is a sync stanbdy labelled with "member name"_sync
"""

tmax_lag = size_to_byte(max_lag) if max_lag is not None else None
Expand Down

0 comments on commit 14c1175

Please sign in to comment.