diff --git a/modules/PrometheusNodeExporter.php b/modules/PrometheusNodeExporter.php new file mode 100644 index 0000000..f1ee17e --- /dev/null +++ b/modules/PrometheusNodeExporter.php @@ -0,0 +1,15 @@ +patch->setBranch('Node Exporter'); + } + function check() : bool { + if ($this->fetch_json('https://api.github.com/repos/prometheus/node_exporter/releases/latest')) + return $this->parse_json('tag_name'); + return false; + } +} + +?>