Refactor clickhouseKeeper prometheus rules#1864
Merged
sunsingerus merged 4 commits intoAltinity:0.25.6from Dec 3, 2025
Merged
Conversation
Slach
approved these changes
Nov 21, 2025
… improve-prometheus-rules
… improve-prometheus-rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update ClickHouse Keeper Prometheus Alert Rules
fix #1328
Summary
This PR updates the ClickHouse Keeper Prometheus alert rules to use modern metrics exposed by recent ClickHouse Keeper versions (23.x+) and adds several new critical alerts for better observability.
Problem
The existing alert rules were using outdated ZooKeeper-compatible metrics (
zk_*) that are no longer exposed by modern ClickHouse Keeper versions. This caused the alerts to fail silently, leaving the cluster without proper monitoring.Fixes #1328
Changes
Updated Existing Alerts (5)
ClickHouseKeeperDown
zk_ruokmetricup{}metric for availability monitoringClickHouseKeeperHighLatency
zk_max_latency→ClickHouseAsyncMetrics_KeeperMaxLatencyClickHouseKeeperOutstandingRequests
zk_outstanding_requests→ClickHouseMetrics_KeeperOutstandingRequestsClickHouseKeeperHighEphemeralNodes
zk_ephemerals_count→ClickHouseAsyncMetrics_KeeperEphemeralsCountClickHouseKeeperHighFileDescriptors
zk_open_file_descriptor_countnot available)New Alerts Added (5)
ClickHouseKeeperCommitsFailed (Critical)
ClickHouseProfileEvents_KeeperCommitsFailedClickHouseKeeperSnapshotCreationsFailed (High)
ClickHouseProfileEvents_KeeperSnapshotCreationsFailedClickHouseKeeperLostQuorum (Critical)
ClickHouseAsyncMetrics_KeeperSyncedFollowers+KeeperIsLeaderClickHouseKeeperMemorySoftLimitExceeded (Warning)
ClickHouseAsyncMetrics_KeeperIsExceedingMemorySoftLimitHitClickHouseKeeperHighFileDescriptorUsage (Warning)
ClickHouseAsyncMetrics_KeeperOpenFileDescriptorCount/KeeperMaxFileDescriptorCountAlert Severity Distribution
Regards,
Kilian