aboutsummaryrefslogtreecommitdiff
path: root/data/prometheus-server
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
committerSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
commit95b73daa36b23565a8566f71f9b202d3459b685f (patch)
treecb17b021be70e7868d0ec235a761f0ecdc80f3f2 /data/prometheus-server
Initial CommitHEADmaster
Diffstat (limited to 'data/prometheus-server')
-rw-r--r--data/prometheus-server/defaults1
-rw-r--r--data/prometheus-server/prometheus.yml168
2 files changed, 169 insertions, 0 deletions
diff --git a/data/prometheus-server/defaults b/data/prometheus-server/defaults
new file mode 100644
index 0000000..f6b095a
--- /dev/null
+++ b/data/prometheus-server/defaults
@@ -0,0 +1 @@
ARGS="--web.external-url=http://monitoring.chudnick.com/prometheus --web.route-prefix=prometheus"
diff --git a/data/prometheus-server/prometheus.yml b/data/prometheus-server/prometheus.yml
new file mode 100644
index 0000000..31c2a53
--- /dev/null
+++ b/data/prometheus-server/prometheus.yml
@@ -0,0 +1,168 @@
1# Sample config for Prometheus.
2
3global:
4 scrape_interval: 15s
5 evaluation_interval: 15s
6 external_labels:
7 monitor: 'homelab-monitoring'
8
9# Alertmanager configuration
10alerting:
11 alertmanagers:
12 - static_configs:
13 - targets: ['localhost:9093']
14
15# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
16rule_files:
17 # - "first_rules.yml"
18 # - "second_rules.yml"
19
20# A scrape configuration containing exactly one endpoint to scrape:
21# Here it's Prometheus itself.
22scrape_configs:
23
24 - job_name: servers
25 static_configs:
26 - targets: [
27 'monitoring.home.local:9100',
28 'ipasrv.home.local:9100',
29 'pihole.home.local:9100',
30 'proxmox.home.local:9100',
31 'docker.home.local:9100',
32 'jump.home.local:9100',
33 'jenkins.home.local:9100',
34 'games.home.local:9100',
35 ]
36
37 - job_name: nginx
38 static_configs:
39 - targets: [
40 'docker.home.local:9113',
41 'monitoring.home.local:9113',
42 'jenkins.home.local:9113'
43 ]
44 metrics_path: "/metrics"
45
46 - job_name: blackbox
47 metrics_path: /probe
48 static_configs:
49 - targets: [
50 'https://chudnick.com',
51 'https://git.chudnick.com',
52 'https://jellyfin.chudnick.com',
53 'https://monitoring.chudnick.com/grafana',
54 'https://monitoring.chudnick.com/prometheus',
55 'https://searxng.chudnick.com/searxng/healthz',
56 'https://ipasrv.home.local/ipa/ui',
57 'https://pihole.chudnick.com/admin',
58 'https://auth.chudnick.com',
59 'https://drawio.chudnick.com',
60 'https://music.chudnick.com',
61 'https://rss.chudnick.com/',
62 'https://dashboard.chudnick.com',
63 'https://gitea.chudnick.com',
64 'https://jenkins.chudnick.com/login',
65 'https://cadvisor.chudnick.com',
66 'https://invidious.chudnick.com',
67 'https://qbittorrent.chudnick.com',
68 'https://sonarr.chudnick.com',
69 'https://radarr.chudnick.com',
70 'https://lidarr.chudnick.com',
71 'https://readarr.chudnick.com',
72 'https://prowlarr.chudnick.com',
73 'https://nextcloud.chudnick.com',
74 'https://photos.chudnick.com',
75 'https://logs.chudnick.com/metrics',
76 'https://dashboard.chudnick.com',
77 'https://wiki.chudnick.com',
78 'https://weather.chudnick.com',
79 'https://gpt.chudnick.com',
80 'https://tasks.chudnick.com',
81 'https://finances.chudnick.com',
82 'https://finimporter.chudnick.com',
83 'https://homeassistant.chudnick.com',
84 ]
85 labels:
86 module: 'http_2xx'
87 - targets: [
88 'https://router.chudnick.com',
89 'https://ap.chudnick.com',
90 ]
91 labels:
92 module: 'http_2xx_noverify'
93 - targets: [
94 'https://games.home.local:47990',
95 ]
96 labels:
97 module: 'http_401_noverify'
98 - targets: ['mail.chudnick.com:25']
99 labels:
100 module: smtp
101 - targets: ['mail.chudnick.com:993']
102 labels:
103 module: imaps
104 relabel_configs:
105 - source_labels: [__address__]
106 target_label: __param_target
107 - source_labels: [__param_target]
108 target_label: instance
109 - source_labels: [module]
110 target_label: __param_module
111 - target_label: __address__
112 replacement: 127.0.0.1:9115
113
114
115 - job_name: applications
116 relabel_configs:
117 - source_labels: [path]
118 target_label: __metrics_path__
119 regex: (.+)
120 replacement: $1
121 - source_labels: [scheme]
122 target_label: __scheme__
123 regex: (.+)
124 replacement: $1
125 static_configs:
126 - targets: ['jellyfin.chudnick.com:443']
127 labels:
128 path: "/metrics"
129 scheme: "https"
130 application: jellyfin
131 - targets: ['monitoring.chudnick.com:443']
132 labels:
133 path: "/grafana/metrics"
134 group: grafana
135 scheme: https
136 application: grafana
137 - targets: ['localhost:9090']
138 labels:
139 application: prometheus
140 path: "/prometheus/metrics"
141 - targets: ['localhost:9115']
142 labels:
143 application: blackbox-exporter
144 path: "/metrics"
145 - targets: ['auth.chudnick.com']
146 labels:
147 application: authelia
148 path: "/metrics"
149 - targets: ['piholemetrics.chudnick.com']
150 labels:
151 application: pihole
152 path: "/metrics"
153 - targets: ['music.chudnick.com']
154 labels:
155 application: navidrome
156 path: "/metrics"
157 - targets: ['cadvisor.chudnick.com']
158 labels:
159 application: cadvisor
160 path: "/metrics"
161 - targets: ['gitea.chudnick.com']
162 labels:
163 application: gitea
164 path: "/metrics"
165 - targets: ['jenkins.chudnick.com']
166 labels:
167 application: jenkins
168 path: "/prometheus"