summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix/vars/template_openshift_master.yml
blob: 174486e15801d9820ac1dfef3c66887ba093f0ab (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
---
g_template_openshift_master:
  name: Template Openshift Master
  zitems:
  - name: create_app
    applications:
    - Openshift Master
    key: create_app

  - key: openshift.master.process.count
    description: Shows number of master processes running
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.api.healthz
    description: "Checks the healthz check of the master's api: https://master_host/healthz"
    type: int
    data_type: bool
    applications:
    - Openshift Master

  - key: openshift.master.user.count
    description: Shows number of users in a cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pod.running.count
    description: Shows number of pods running
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pod.user.running.count
    description: Shows number of user pods running (non infrastructure pods)
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.pod.total.count
    description: Shows total number of pods (running and non running)
    type: int
    applications:
    - Openshift Master

  - key: openshift.project.count
    description: Shows number of projects on a cluster
    type: int
    applications:
    - Openshift Master

  - key: openshift.master.etcd.create.success
    description: Show number of successful create actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.create.fail
    description: Show number of failed create actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.delete.success
    description: Show number of successful delete actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.delete.fail
    description: Show number of failed delete actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.get.success
    description: Show number of successful get actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.get.fail
    description: Show number of failed get actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.set.success
    description: Show number of successful set actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.set.fail
    description: Show number of failed set actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.update.success
    description: Show number of successful update actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.update.fail
    description: Show number of failed update actions
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.watchers
    description: Show number of etcd watchers
    type: int
    applications:
    - Openshift Etcd

  - key: openshift.master.etcd.ping
    description: etcd ping
    type: int
    applications:
    - Openshift Etcd

  ztriggers:
  - name: 'Application creation has failed on {HOST.NAME}'
    expression: '{Template Openshift Master:create_app.last(#1)}=1 and {Template Openshift Master:create_app.last(#2)}=1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
    priority: avg

  - name: 'Openshift Master API health check is failing on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.api.healthz.max(#3)}<1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: high

  - name: 'Openshift Master process not running on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.process.count.max(#3)}<1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: high

  - name: 'Too many Openshift Master processes running on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.process.count.min(#3)}>1'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: high

  - name: 'Number of users for Openshift Master on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.user.count.last()}=0'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: info

  - name: 'There are no projects running on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.project.count.last()}=0'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
    priority: info

  - name: 'Low number of etcd watchers on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.etcd.watchers.last(#1)}<10 and {Template Openshift Master:openshift.master.etcd.watchers.last(#2)}<10'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
    priority: avg

  - name: 'Etcd ping failed on {HOST.NAME}'
    expression: '{Template Openshift Master:openshift.master.etcd.ping.last(#1)}=0 and {Template Openshift Master:openshift.master.etcd.ping.last(#2)}=0'
    url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
    priority: high