mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
* Add systemd_exporter Ansible role and Prometheus scrape config - Create systemd_exporter role (download binary, create user, deploy service) - Add scrape job for london-b:9558 and copenhagen-a:9558 - Add systemd_exporter_hosts inventory group - Add stage 3b to deploy.yml - Map role to deploy-on-merge scope Closes PESO-120 * Fix line length lint violations in systemd_exporter tasks * Fix var-naming lint: use systemd_exporter_ prefix for role variables
80 lines
2.2 KiB
YAML
80 lines
2.2 KiB
YAML
---
|
|
# Prometheus configuration — extracted from london-a (FreeBSD)
|
|
# Config file location on london-a: /usr/local/etc/prometheus.yml
|
|
# Prometheus runs as: /usr/local/bin/prometheus --config.file=/usr/local/etc/prometheus.yml
|
|
# Data directory: /var/db/prometheus
|
|
|
|
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
# Alerting notifications are handled by Grafana (unified alerting with
|
|
# PagerDuty + email contact points), not Alertmanager. No alerting:
|
|
# section is needed here. Prometheus still evaluates these rule_files
|
|
# so the ALERTS / ALERTS_FOR_STATE metrics are available for queries.
|
|
rule_files:
|
|
- /usr/local/etc/prometheus/rules/*.rules
|
|
|
|
scrape_configs:
|
|
- job_name: "prometheus"
|
|
static_configs:
|
|
- targets: ["localhost:9090"]
|
|
|
|
- job_name: "node_exporter"
|
|
static_configs:
|
|
- targets: ["100.122.219.41:9100"]
|
|
labels:
|
|
location: london
|
|
server: london-a
|
|
- targets: ["100.84.65.101:9100"]
|
|
labels:
|
|
location: london
|
|
server: london-b
|
|
- targets: ["100.89.206.60:9100"]
|
|
labels:
|
|
location: copenhagen
|
|
server: copenhagen-a
|
|
- targets: ["100.115.45.53:9100"]
|
|
labels:
|
|
location: copenhagen
|
|
server: copenhagen-c
|
|
- targets: ["100.117.235.28:9100"]
|
|
labels:
|
|
location: cloud
|
|
server: nuremberg-a
|
|
- targets: ["100.67.6.27:9100"]
|
|
labels:
|
|
location: cloud
|
|
server: helsinki-a
|
|
|
|
- job_name: "smartmontools"
|
|
static_configs:
|
|
- targets: ["100.84.65.101:9633"]
|
|
labels:
|
|
location: london
|
|
server: london-b
|
|
|
|
- job_name: "plex"
|
|
static_configs:
|
|
- targets: ["100.84.65.101:9000"]
|
|
labels:
|
|
location: london
|
|
server: london-b
|
|
|
|
- job_name: "systemd_exporter"
|
|
static_configs:
|
|
- targets: ["100.84.65.101:9558"]
|
|
labels:
|
|
location: london
|
|
server: london-b
|
|
- targets: ["100.89.206.60:9558"]
|
|
labels:
|
|
location: copenhagen
|
|
server: copenhagen-a
|
|
|
|
- job_name: "caddy"
|
|
static_configs:
|
|
- targets: ["100.67.6.27:2019"]
|
|
labels:
|
|
location: cloud
|
|
server: helsinki-a
|