From a8210df0e55998c765cb892b04aa5cae7049e75e Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Sun, 14 Mar 2021 21:20:52 +0100 Subject: [PATCH] Add Prometheus Node exporter --- modules/PrometheusNodeExporter.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/PrometheusNodeExporter.php 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; + } +} + +?>