repos / ops

infra for pico services
git clone https://github.com/picosh/ops.git

commit
20da7ed
parent
7dd1162
author
Antonio Mika
date
2023-02-24 20:34:28 +0000 UTC
Added http redirect check
1 files changed,  +88, -65
M monitoring/prometheus/config/prometheus.yml
+88, -65
  1@@ -9,25 +9,25 @@ scrape_configs:
  2   - job_name: prometheus
  3     static_configs:
  4       - targets:
  5-        - prometheus:9090
  6+          - prometheus:9090
  7   - job_name: grafana
  8     static_configs:
  9       - targets:
 10-        - grafana:3000
 11+          - grafana:3000
 12   - job_name: cadvisor
 13     static_configs:
 14       - targets:
 15-        - 10.0.0.48:9080 # oracle0
 16-        - 10.0.0.211:9080 # oracle1
 17-        - 10.0.0.101:9080 # oracle2
 18-        - 10.0.0.150:9080 # oracle3
 19+          - 10.0.0.48:9080 # oracle0
 20+          - 10.0.0.211:9080 # oracle1
 21+          - 10.0.0.101:9080 # oracle2
 22+          - 10.0.0.150:9080 # oracle3
 23   - job_name: node_exporter
 24     static_configs:
 25       - targets:
 26-        - 10.0.0.48:9100 # oracle0
 27-        - 10.0.0.211:9100 # oracle1
 28-        - 10.0.0.101:9100 # oracle2
 29-        - 10.0.0.150:9100 # oracle3
 30+          - 10.0.0.48:9100 # oracle0
 31+          - 10.0.0.211:9100 # oracle1
 32+          - 10.0.0.101:9100 # oracle2
 33+          - 10.0.0.150:9100 # oracle3
 34   - job_name: wish
 35     tls_config:
 36       insecure_skip_verify: true
 37@@ -35,11 +35,11 @@ scrape_configs:
 38     metrics_path: /_app/metrics
 39     static_configs:
 40       - targets:
 41-        - prose.sh
 42-        - pastes.sh
 43-        - lists.sh
 44-        - imgs.sh
 45-        - feeds.sh
 46+          - prose.sh
 47+          - pastes.sh
 48+          - lists.sh
 49+          - imgs.sh
 50+          - feeds.sh
 51   - job_name: caddy
 52     tls_config:
 53       insecure_skip_verify: true
 54@@ -47,13 +47,13 @@ scrape_configs:
 55     metrics_path: /_caddy/metrics
 56     static_configs:
 57       - targets:
 58-        - prose.sh
 59-        - pastes.sh
 60-        - lists.sh
 61-        - imgs.sh
 62-        - feeds.sh
 63-        - monitoring.pico.sh
 64-        - minio.pico.sh
 65+          - prose.sh
 66+          - pastes.sh
 67+          - lists.sh
 68+          - imgs.sh
 69+          - feeds.sh
 70+          - monitoring.pico.sh
 71+          - minio.pico.sh
 72   - job_name: minio
 73     tls_config:
 74       insecure_skip_verify: true
 75@@ -61,94 +61,117 @@ scrape_configs:
 76     metrics_path: /minio/v2/metrics/cluster
 77     static_configs:
 78       - targets:
 79-        - minio.pico.sh
 80+          - minio.pico.sh
 81   - job_name: blackbox_exporter_ping
 82     metrics_path: "/probe"
 83     params:
 84       module:
 85-      - icmp_check
 86+        - icmp_check
 87     relabel_configs:
 88       - source_labels:
 89-        - __address__
 90+          - __address__
 91         target_label: __param_target
 92       - source_labels:
 93-        - __param_target
 94+          - __param_target
 95         target_label: instance
 96       - target_label: __address__
 97         replacement: blackbox_exporter:9115
 98     static_configs:
 99-    - targets:
100-        - prose.sh
101-        - pastes.sh
102-        - lists.sh
103-        - imgs.sh
104-        - feeds.sh
105-        - monitoring.pico.sh
106-        - minio.pico.sh
107+      - targets:
108+          - prose.sh
109+          - pastes.sh
110+          - lists.sh
111+          - imgs.sh
112+          - feeds.sh
113+          - monitoring.pico.sh
114+          - minio.pico.sh
115   - job_name: blackbox_exporter_ssh
116     metrics_path: "/probe"
117     params:
118       module:
119-      - ssh_banner
120+        - ssh_banner
121     relabel_configs:
122       - source_labels:
123-        - __address__
124+          - __address__
125         target_label: __param_target
126       - source_labels:
127-        - __param_target
128+          - __param_target
129         target_label: instance
130       - target_label: __address__
131         replacement: blackbox_exporter:9115
132     static_configs:
133-    - targets:
134-        - prose.sh:22
135-        - pastes.sh:22
136-        - lists.sh:22
137-        - imgs.sh:22
138-        - feeds.sh:22
139-        - prose.sh:650
140-        - pastes.sh:650
141-        - lists.sh:650
142-        - imgs.sh:650
143-        - feeds.sh:650
144-        - monitoring.pico.sh:650
145-        - minio.pico.sh:650
146+      - targets:
147+          - prose.sh:22
148+          - pastes.sh:22
149+          - lists.sh:22
150+          - imgs.sh:22
151+          - feeds.sh:22
152+          - prose.sh:650
153+          - pastes.sh:650
154+          - lists.sh:650
155+          - imgs.sh:650
156+          - feeds.sh:650
157+          - monitoring.pico.sh:650
158+          - minio.pico.sh:650
159   - job_name: blackbox_exporter_https_2xx
160     metrics_path: "/probe"
161     params:
162       module:
163-      - https_get_2xx
164+        - https_get_2xx
165     relabel_configs:
166       - source_labels:
167-        - __address__
168+          - __address__
169         target_label: __param_target
170       - source_labels:
171-        - __param_target
172+          - __param_target
173         target_label: instance
174       - target_label: __address__
175         replacement: blackbox_exporter:9115
176     static_configs:
177-    - targets:
178-        - https://prose.sh
179-        - https://pastes.sh
180-        - https://lists.sh
181-        - https://imgs.sh
182-        - https://feeds.sh
183-        - https://monitoring.pico.sh
184+      - targets:
185+          - https://prose.sh
186+          - https://pastes.sh
187+          - https://lists.sh
188+          - https://imgs.sh
189+          - https://feeds.sh
190+          - https://monitoring.pico.sh
191   - job_name: blackbox_exporter_https_4xx
192     metrics_path: "/probe"
193     params:
194       module:
195-      - https_get_4xx
196+        - https_get_4xx
197+    relabel_configs:
198+      - source_labels:
199+          - __address__
200+        target_label: __param_target
201+      - source_labels:
202+          - __param_target
203+        target_label: instance
204+      - target_label: __address__
205+        replacement: blackbox_exporter:9115
206+    static_configs:
207+      - targets:
208+          - https://minio.pico.sh
209+  - job_name: blackbox_exporter_http_3xx
210+    metrics_path: "/probe"
211+    params:
212+      module:
213+        - http_get_3xx
214     relabel_configs:
215       - source_labels:
216-        - __address__
217+          - __address__
218         target_label: __param_target
219       - source_labels:
220-        - __param_target
221+          - __param_target
222         target_label: instance
223       - target_label: __address__
224         replacement: blackbox_exporter:9115
225     static_configs:
226-    - targets:
227-        - https://minio.pico.sh
228+      - targets:
229+          - http://prose.sh
230+          - http://pastes.sh
231+          - http://lists.sh
232+          - http://imgs.sh
233+          - http://feeds.sh
234+          - http://monitoring.pico.sh
235+          - http://minio.pico.sh