Files
node-problem-detector/pkg/custompluginmonitor
Veer Singh ba3a2d858b Add unit tests for the custom plugin monitor
This change adds tests for generateStatus, the monitor lifecycle and the
metrics path. Package coverage increases from 0.8% to 95.3% of statements.

A table test replays sequences of plugin results against one monitor. The
table covers the five condition scenarios in generateStatus. Other tests
cover the temporary rule path, the problem counter, the problem gauge and
the constructor.

This change adds no production code.
2026-07-28 21:53:20 -07:00
..
2026-07-20 23:58:14 -07:00
2026-07-20 23:58:14 -07:00
2025-08-13 16:56:32 +00:00
2017-11-22 10:14:09 +08:00

Custom Plugin Monitor

Custom plugin monitor is a plugin mechanism for node-problem-detector. It will extend node-problem-detector to execute any monitor scripts written in any language. The monitor scripts must conform to the plugin protocol in exit code and standard output. For more info about the plugin protocol, please refer to the node-problem-detector plugin interface proposal