Add Prometheus Node exporter
This commit is contained in:
parent
601bc78ca5
commit
a8210df0e5
1 changed files with 15 additions and 0 deletions
15
modules/PrometheusNodeExporter.php
Normal file
15
modules/PrometheusNodeExporter.php
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue