Skip to content

[feat] Support etcd monitoring - #4306

Merged
Duansg merged 3 commits into
apache:masterfrom
orangeCatDeveloper:feat/549-etcd-monitor
Aug 9, 2026
Merged

[feat] Support etcd monitoring#4306
Duansg merged 3 commits into
apache:masterfrom
orangeCatDeveloper:feat/549-etcd-monitor

Conversation

@orangeCatDeveloper

@orangeCatDeveloper orangeCatDeveloper commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What's changed?

Closes #549: add etcd monitoring support.

New etcd monitor type (Mid Monitor category) collecting from etcd's Prometheus /metrics endpoint over HTTP — no agent, no extra etcd configuration in the common case:

  • Availability: etcd_server_has_leader (priority 0)
  • Metrics: database size (B→MB), leader changes, process CPU time, process resident memory
  • Supports etcd 3.4+ (etcd_mvcc_db_total_size_in_bytes replaced the etcd_debugging_* name in 3.4)
  • Help docs (en, zh-cn) cover the localhost-only / mutual-TLS case via --listen-metrics-urls

E2E 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:

etcd-monitor-list etcd-monitor-detail-1 etcd-monitor-detail-2

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

@github-actions github-actions Bot added doc Improvements or additions to documentation monitoring-template backend labels Aug 9, 2026
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

@Duansg Duansg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Duansg
Duansg merged commit 42307a9 into apache:master Aug 9, 2026
6 checks passed
@orangeCatDeveloper
orangeCatDeveloper deleted the feat/549-etcd-monitor branch August 9, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend doc Improvements or additions to documentation monitoring-template

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Question] How would I add monitor support for ETCD?

2 participants