Add auth exporter module: implement Prometheus scrape configuration, exporter logic, and Grafana dashboard

This commit is contained in:
2025-10-03 00:59:58 +02:00
parent eb60d37c2d
commit cd69dbc25a
7 changed files with 303 additions and 0 deletions
@@ -42,3 +42,8 @@ scrape_configs:
- targets:
- "node-exporter.kube-system.svc.cluster.local:9100"
- "10.19.4.1:9100"
- job_name: auth-exporter
scrape_interval: 10s
static_configs:
- targets:
- "auth-exporter.kube-system.svc.cluster.local:9100"
+5
View File
@@ -143,3 +143,8 @@ module "fail2ban_exporter" {
module "node_exporter" {
source = "../../modules/utils/node-exporter"
}
module "auth_exporter" {
source = "../../modules/utils/auth-exporter"
persistent_folder = "${local.persistent_folder}/monitoring"
}
@@ -44,3 +44,8 @@ scrape_configs:
scrape_interval: 60s
static_configs:
- targets: ["fail2ban-exporter.kube-system.svc.cluster.local:9100"]
- job_name: auth-exporter
scrape_interval: 10s
static_configs:
- targets:
- "auth-exporter.kube-system.svc.cluster.local:9100"