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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
