Files
threadnet-operating/monitoring/prometheus/prometheus.yml
T

55 lines
1.3 KiB
YAML
Raw Normal View History

global:
scrape_interval: 15s
rule_files:
- /etc/prometheus/alerts.yml
alerting:
alertmanagers:
- static_configs:
- targets: ["alertmanager:9093"]
# Zusaetzlich zu diesen Scrape-Targets kommen Metriken per Remote-Write rein
# (k3s-Cluster: flux, kube_state_metrics; Matrix-Server: synapse).
scrape_configs:
## Operating-Server (dieser Host)
- job_name: "operating_prometheus"
static_configs:
- targets: ["localhost:9090"]
- job_name: "operating_node-exporter"
static_configs:
- targets: ["node-exporter:9100"]
- job_name: "operating_cadvisor"
# cadvisor laeuft im Portainer-Stack "thread-net-git", selbes traefik-Netz
static_configs:
- targets: ["cadvisor:8080"]
- job_name: "operating_traefik"
metrics_path: "/metrics"
static_configs:
- targets: ["traefik:8080"]
## Externe Hosts
- job_name: "k3s_host_node"
static_configs:
- targets: ["10.0.0.2:9100"]
labels:
instance: "k3s-host"
- job_name: "pterodactyl_host_node"
static_configs:
- targets: ["157.90.155.206:9100"]
labels:
instance: "pterodactyl"
- job_name: "gameserver_cadvisor"
static_configs:
- targets: ["157.90.155.206:8080"]
# CVE-Exporter (gitops#47)
- job_name: "cve_exporter"
static_configs:
- targets: ["cve-exporter:9101"]