You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@hertzbeat.apache.org by "orangeCatDeveloper (via GitHub)" <gi...@apache.org> on 2026/08/09 11:37:03 UTC

[PR] [feat] Support etcd monitoring [hertzbeat]

orangeCatDeveloper opened a new pull request, #4306:
URL: https://github.com/apache/hertzbeat/pull/4306

   ## 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:
   
   ## Checklist
   
   - [x]  I have read the [Contributing Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)
   - [x]  I have written the necessary doc or comment.
   - [x]  I have added the necessary unit tests and all cases have passed.
   
   ## Add or update API
   
   - [x] I have added the necessary [e2e tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have passed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org


Re: [PR] [feat] Support etcd monitoring [hertzbeat]

Posted by "Duansg (via GitHub)" <gi...@apache.org>.
Duansg merged PR #4306:
URL: https://github.com/apache/hertzbeat/pull/4306


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@hertzbeat.apache.org
For additional commands, e-mail: notifications-help@hertzbeat.apache.org