summaryrefslogtreecommitdiff
path: root/f3s/prometheus/additional-scrape-configs.yaml
blob: 5883e176576ddfc5f1239c0750a5400b8c4afc54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
- job_name: 'node-exporter'
  static_configs:
    - targets:
      - '192.168.2.130:9100'  # f0 via WireGuard
      - '192.168.2.131:9100'  # f1 via WireGuard
      - '192.168.2.132:9100'  # f2 via WireGuard
      - '192.168.2.133:9100'  # f3 via WireGuard
      labels:
        os: freebsd
    - targets:
      - '192.168.2.110:9100'  # blowfish via WireGuard
      - '192.168.2.111:9100'  # fishfinger via WireGuard
      labels:
        os: openbsd

- job_name: 'garage'
  static_configs:
    - targets:
        - '192.168.2.130:3903'  # f0 via WireGuard
        - '192.168.2.131:3903'  # f1 via WireGuard
        - '192.168.2.132:3903'  # f2 via WireGuard
      labels:
        os: freebsd

- job_name: 'pushgateway'
  honor_labels: true
  static_configs:
    - targets:
      - 'pushgateway.monitoring.svc.cluster.local:9091'

# Drop radicale service from being scraped (does not expose Prometheus metrics)
- job_name: 'radicale-drop'
  static_configs:
    - targets:
      - 'radicale-service.services.svc.cluster.local:80'
  relabel_configs:
    - source_labels: [__address__]
      action: drop

# Kubernetes service discovery with radicale dropped
- job_name: 'kubernetes-services-no-radicale'
  kubernetes_sd_configs:
    - role: service
      namespaces:
        names:
          - services
  relabel_configs:
    # Drop radicale service
    - source_labels: [__meta_kubernetes_service_name]
      regex: radicale-service
      action: drop
    # Keep only metrics ports
    - source_labels: [__meta_kubernetes_service_port_name]
      regex: metrics|prometheus
      action: keep
    - source_labels: [__meta_kubernetes_service_name]
      target_label: job
    - source_labels: [__meta_kubernetes_namespace]
      target_label: namespace