diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-12 22:27:12 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-12 22:27:12 +0200 |
commit | 60a025b88ab5aebc9c9af74f810592d069460ce5 (patch) | |
tree | 75ad444f9d0617b381c86d8114ca61059fff9dc5 | |
parent | Add grafana draft. (diff) | |
download | profiles-60a025b88ab5aebc9c9af74f810592d069460ce5.tar.gz profiles-60a025b88ab5aebc9c9af74f810592d069460ce5.tar.xz |
Add prometheus draft.graf
-rw-r--r-- | manifests/prometheus.pp | 44 |
1 files changed, 44 insertions, 0 deletions
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', + # } + # } + # ], + # }, + # ], + } + +} |