repos / ops

infra for pico services
git clone https://github.com/picosh/ops.git

ops / monitoring / grafana / config / provisioning / alerting
Antonio Mika · 24 Jul 23

ssh.yml

 1apiVersion: 1
 2
 3groups:
 4  - orgId: 1
 5    name: SSH
 6    folder: Default
 7    interval: 60s
 8    rules:
 9      - id: 2
10        uid: dOT8vnbVz
11        orgID: 1
12        folderUID: wLZWgnbVz
13        ruleGroup: SSH
14        title: SSH Status
15        condition: C
16        data:
17        - refId: A
18          queryType: ''
19          relativeTimeRange:
20            from: 600
21            to: 0
22          datasourceUid: PBFA97CFB590B2093
23          model:
24            editorMode: code
25            expr: probe_success{job=~"blackbox_exporter_ssh.*"}
26            hide: false
27            intervalMs: 1000
28            legendFormat: __auto
29            maxDataPoints: 43200
30            range: true
31            refId: A
32        - refId: B
33          queryType: ''
34          relativeTimeRange:
35            from: 600
36            to: 0
37          datasourceUid: "-100"
38          model:
39            conditions:
40            - evaluator:
41                params: []
42                type: gt
43              operator:
44                type: and
45              query:
46                params:
47                - B
48              reducer:
49                params: []
50                type: last
51              type: query
52            datasource:
53              type: __expr__
54              uid: "-100"
55            expression: A
56            hide: false
57            intervalMs: 1000
58            maxDataPoints: 43200
59            reducer: last
60            refId: B
61            type: reduce
62        - refId: C
63          queryType: ''
64          relativeTimeRange:
65            from: 600
66            to: 0
67          datasourceUid: "-100"
68          model:
69            conditions:
70            - evaluator:
71                params:
72                - 1
73                - 0
74                type: lt
75              operator:
76                type: and
77              query:
78                params: []
79              reducer:
80                params: []
81                type: avg
82              type: query
83            datasource:
84              name: Expression
85              type: __expr__
86              uid: __expr__
87            expression: B
88            intervalMs: 1000
89            maxDataPoints: 43200
90            refId: C
91            type: threshold
92        updated: '2023-02-24T20:26:24Z'
93        noDataState: NoData
94        execErrState: Error
95        for: 1m
96        annotations:
97          description: SSH is inaccessible for {{ $labels.instance }}
98          summary: SSH is inaccessible for {{ $labels.instance }}