Add Prometheus Node exporter

This commit is contained in:
Steffen Lange 2021-03-14 21:20:52 +01:00
parent 601bc78ca5
commit a8210df0e5

View file

@ -0,0 +1,15 @@
<?php
class PrometheusNodeExporter extends PatchBase {
function __construct() {
parent::__construct('Prometheus Authors', 'Prometheus', 'https://prometheus.io/download/');
$this->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;
}
}
?>