diff --git a/modules/Grafana.php b/modules/Grafana.php index b4bd335..c7a5029 100644 --- a/modules/Grafana.php +++ b/modules/Grafana.php @@ -5,8 +5,8 @@ class Grafana extends PatchBase { parent::__construct('Grafana Labs', 'Grafana', 'https://grafana.com/grafana/download'); } function check() : bool { - if ($this->fetch('https://grafana.com/grafana/download')) - return $this->parse('/selected="" value="([\d\.]+)"/'); + if ($this->fetch_json('https://api.github.com/repos/grafana/grafana/releases/latest')) + return $this->parse_json('tag_name'); return false; } }