Skip to content

Commit 2f8a3d2

Browse files
StefanBaleaTwiN
andauthored
feat(metrics): Add metrics for domain expiration (#1244)
* Add metrics for domain expiration * Update grafana and prometheus versions and extend grafana dashboard with Domain expiration * feat(deps) update whois version --------- Co-authored-by: TwiN <[email protected]>
1 parent 9495b73 commit 2f8a3d2

File tree

6 files changed

+303
-133
lines changed

6 files changed

+303
-133
lines changed

.examples/docker-compose-grafana-prometheus/config/config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ endpoints:
1616
url: https://api.github.com/healthz
1717
interval: 5m
1818
conditions:
19-
- "[STATUS] == 200"
19+
- "[STATUS] == 200"
20+
21+
- name: check-domain-expiration
22+
url: "https://example.org/"
23+
interval: 1h
24+
conditions:
25+
- "[DOMAIN_EXPIRATION] > 720h"

.examples/docker-compose-grafana-prometheus/docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: "3.9"
21
services:
32
gatus:
43
container_name: gatus
@@ -13,7 +12,7 @@ services:
1312

1413
prometheus:
1514
container_name: prometheus
16-
image: prom/prometheus:v2.14.0
15+
image: prom/prometheus:v3.5.0
1716
restart: always
1817
command: --config.file=/etc/prometheus/prometheus.yml
1918
ports:
@@ -25,7 +24,7 @@ services:
2524

2625
grafana:
2726
container_name: grafana
28-
image: grafana/grafana:6.4.4
27+
image: grafana/grafana:12.1.0
2928
restart: always
3029
environment:
3130
GF_SECURITY_ADMIN_PASSWORD: secret

0 commit comments

Comments
 (0)