[feat] Support etcd monitoring - #4306
Merged
Merged
Conversation
orangeCatDeveloper
force-pushed
the
feat/549-etcd-monitor
branch
from
August 9, 2026 11:37
5c8ff5c to
7d7f3bc
Compare
Add etcd monitoring template (etcd 3.4+) collecting leader status, database size, leader changes and process CPU/memory from etcd's Prometheus /metrics endpoint. Includes help docs (en, zh-cn), sidebar entry and an e2e test asserting exact collected values against a fixture captured from a real etcd v3.5.17 instance. Closes apache#549
orangeCatDeveloper
force-pushed
the
feat/549-etcd-monitor
branch
from
August 9, 2026 11:41
7d7f3bc to
1901be0
Compare
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.
What's changed?
Closes #549: add etcd monitoring support.
New
etcdmonitor type (Mid Monitor category) collecting from etcd's Prometheus/metricsendpoint over HTTP — no agent, no extra etcd configuration in the common case:etcd_server_has_leader(priority 0)etcd_mvcc_db_total_size_in_bytesreplaced theetcd_debugging_*name in 3.4)--listen-metrics-urlsE2E test asserts the exact collected values (including the B→MB unit conversion) against a fixture captured from a real etcd v3.5.17 instance.
Verified against a live etcd v3.5.17 container:
Checklist
Add or update API