Files
ntfy/util
binwiederhier 134d8bb653 Show each cluster node's view of its peers: status endpoint, per-peer metrics, CLI
A link that only works one way (a firewall dropping the cluster port in one direction) left
both nodes healthy: the sender only logged lost batches and bumped an unlabeled error counter,
and the receiver had no way to see it never heard from that peer. Every node now counts the
message batches it sends to and receives from each peer, and shows them:

- GET /v1/cluster/status on the cluster listener (secret-authenticated): role, leadership,
  health, and per peer the outbound and inbound counters, last success and last error
- ntfy_cluster_peer_batches_sent_total{peer,result}, ntfy_cluster_peer_batches_received_total{peer}
  and ntfy_cluster_peer_last_send_success_timestamp_seconds{peer}
- ntfy cluster status [--json], which reads the listener and secret from the server config and
  lists the link problems

/v1/health and /v1/ready are unchanged.
2026-10-18 22:59:21 +00:00
..
2026-08-03 18:34:29 +02:00
2022-09-27 12:37:02 -04:00
2022-03-10 21:55:56 -05:00
2022-10-01 16:31:48 -04:00
2023-01-18 15:50:06 -05:00
2023-02-08 22:57:10 -05:00
2024-03-20 21:33:54 -04:00
2026-10-07 14:46:32 +00:00
2026-10-07 14:46:32 +00:00