From 60a025b88ab5aebc9c9af74f810592d069460ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 12 Oct 2022 22:27:12 +0200 Subject: Add prometheus draft. --- manifests/prometheus.pp | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 manifests/prometheus.pp diff --git a/manifests/prometheus.pp b/manifests/prometheus.pp new file mode 100644 index 0000000..201b94c --- /dev/null +++ b/manifests/prometheus.pp @@ -0,0 +1,44 @@ +class profiles::prometheus ( +) { + + class { '::prometheus::server': + version => '2.33.3', + # alerts => { + # 'groups' => [ + # { + # 'name' => 'alert.rules', + # 'rules' => [ + # { + # 'alert' => 'InstanceDown', + # 'expr' => 'up == 0', + # 'for' => '5m', + # 'labels' => { + # 'severity' => 'page', + # }, + # 'annotations' => { + # 'summary' => 'Instance {{ $labels.instance }} down', + # 'description' => '{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.', + # } + # }, + # ], + # }, + # ], + # }, + # scrape_configs => [ + # { + # 'job_name' => 'prometheus', + # 'scrape_interval' => '10s', + # 'scrape_timeout' => '10s', + # 'static_configs' => [ + # { + # 'targets' => [ 'localhost:9090' ], + # 'labels' => { + # 'alias' => 'Prometheus', + # } + # } + # ], + # }, + # ], + } + +} -- cgit v1.2.3