summaryrefslogtreecommitdiffstats
path: root/pillar/role/monitoring/prometheus-exporter-blackbox.sls
blob: 3e9ab08662471842b3155a85103b9946aaa3615d (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
prometheus:
  wanted:
    component:
      - blackbox_exporter
  pkg:
    component:
      blackbox_exporter:
        config:
          modules:
            http_2xx:
              prober: http
              timeout: 15s
            http_post_2xx:
              prober: http
              http:
                method: POST
            http_3xx:
              prober: http
              timeout: 5s
              http:
                method: HEAD
                no_follow_redirects: true
                valid_status_codes: [301, 302]
            tcp_connect:
              prober: tcp
            ssh_banner:
              prober: tcp
              tcp:
                query_response:
                - expect: "^SSH-2.0-"
            irc_banner:
              prober: tcp
              tcp:
                query_response:
                - send: "NICK prober"
                - send: "USER prober prober prober :prober"
                - expect: "PING :([^ ]+)"
                  send: "PONG ${1}"
                - expect: "^:[^ ]+ 001"
            icmp:
              prober: icmp

firewalld:
  zones:
    internal:
      ports:
        - comment: 'Prometheus Blackbox Exporter'
          port: 9115
          protocol: tcp