Tools / Apache HertzBeat Interview Questions
How do you add a custom monitoring type in HertzBeat?
Adding a brand-new monitoring type is a configuration task, not a coding one, thanks to the YML template system.
- Identify the protocol the target speaks (HTTP, JMX, SSH, SNMP, JDBC, or Prometheus format).
- Write a YML template defining the connection parameters and the metric groups/fields to pull.
- Import the template through the HertzBeat web UI.
- HertzBeat auto-generates the monitor creation form, dashboard charts, and threshold options for the new type.
- Create a monitor instance using that type and verify data starts flowing.
Only if the target needs a genuinely new protocol HertzBeat doesn't already speak would a real custom collector module and code changes be required.
More Related questions...