- job_name: 'k8s-pods' kubernetes_sd_configs: - role: pod relabel_configs: - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape] action: keep regex: true - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port] action: replace regex: ([^:]+)(?::\d+)?;(\d+) replacement: $1:$2 target_label: __address__ - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path] action: replace target_label: __metrics_path__ regex: (.+) - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme] action: replace target_label: __scheme__ regex: (.+) - action: labelmap regex: __meta_kubernetes_pod_label_(.+) - source_labels: [__meta_kubernetes_namespace] action: replace target_label: kubernetes_namespace - source_labels: [__meta_kubernetes_pod_name] action: replace target_label: kubernetes_pod_name - job_name: static_http_targets static_configs: - targets: - ubnt:9001 # mongod-exporter - rpi4-build:8080 - ci-runner-0:8080 - ci-runner-1:8080 - docker:9170 # docker hub prometheus exporter - jellyfin:8096 # jellyfin - signald:9595 # signald on signald - http:8405 # haproxy on http - media-ingest:8192 - monitoring-0:3100 # loki on legacy monitoring - monitoring-0:9374 # smokeping_prober on legacy monitoring - monitoring-0:3000 # grafana on legacy monitoring - monitoring-0:9093 # alertmanager on legacy monitoring - monitoring-0:9090 # prometheus on legacy monitoring - monitoring-0:9595 # signald on legacy monitoring - monitoring-0:9099 # rdap monitor on legacy monitoring - hypervisor-d:9162 # apcupsd_exporter on hypervisor-d - hypervisor-d:9633 # smartctl_exporter on hypervisor-d - job_name: promtail static_configs: - targets: - 'mx1.janky.email:9080' # promtail on mx1.janky.email - k8s-node-1:9080 - k8s-node-2:9080 - k8s-node-3:9080 - k8s-node-usb-0:9080 - hypervisor-d:9080 - http:9080 - media-ingest:9080 - minio:9080 - signald:9080 - forgejo-runner-0:9080 - forgejo-runner-1:9080 - forgejo-runner-2:9080 - forgejo-runner-3:9080 - monitoring-0:9080 - job_name: node-exporter static_configs: - targets: - openwrt:9100 - octopi:9100 - home-assistant:9100 - rpi4-build:9100 - docker:9100 - jellyfin:9100 - minio:9100 - signald:9100 - ci-runner-0:9100 - ci-runner-1:9100 - media-ingest:9100 - mc:9100 - http:9100 - ubnt:9100 - mx1.janky.email:9100 - dns:9100 - hypervisor-d:9100 - mobile-proxy:9100 - monitoring-0:9100 - forgejo-runner-0:9100 - forgejo-runner-1:9100 - forgejo-runner-2:9100 - forgejo-runner-3:9100 - job_name: minio authorization: credentials_file: /etc/prometheus/secrets/scrape-secrets/minio.token metrics_path: /minio/v2/metrics/cluster static_configs: - targets: ['minio:9000'] # - job_name: 'home-assistant' # metrics_path: /api/prometheus # authorization: # credentials_file: /etc/prometheus/secrets/scrape-secrets/home-assistant.token # static_configs: # - targets: # - home-assistant:8123 - job_name: forgejo authorization: credentials_file: /etc/prometheus/secrets/scrape-secrets/forgejo.token scheme: https static_configs: - targets: [git.janky.solutions] - job_name: speedtest scrape_interval: 30m scrape_timeout: 1m static_configs: - targets: - docker:9798