template_openshift_master.yml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. ---
  2. g_template_openshift_master:
  3. name: Template Openshift Master
  4. zitems:
  5. - name: openshift.master.app.create
  6. applications:
  7. - Openshift Master
  8. key: openshift.master.app.create
  9. - key: openshift.master.registry.healthy_pct
  10. description: "Shows the percentage of healthy registries in the cluster"
  11. type: int
  12. applications:
  13. - Openshift Master
  14. - key: openshift.master.process.count
  15. description: Shows number of master processes running
  16. type: int
  17. applications:
  18. - Openshift Master
  19. - key: openshift.master.api.ping
  20. description: "Verify that the Openshift API is up (uses the cluster API URL)"
  21. type: int
  22. applications:
  23. - Openshift Master
  24. - key: openshift.master.local.api.ping
  25. description: "Verify that the Openshift API is up on the host (uses the API URL as the https://127.0.0.1)"
  26. type: int
  27. applications:
  28. - Openshift Master
  29. - key: openshift.master.api.healthz
  30. description: "Checks the healthz check of the master's api: https://<cluster_api_url>/healthz"
  31. type: int
  32. data_type: bool
  33. applications:
  34. - Openshift Master
  35. - key: openshift.master.local.api.healthz
  36. description: "Checks the healthz check of the master's api: https://127.0.0.1/healthz"
  37. type: int
  38. data_type: bool
  39. applications:
  40. - Openshift Master
  41. - key: openshift.master.user.count
  42. description: Shows number of users in a cluster
  43. type: int
  44. applications:
  45. - Openshift Master
  46. - key: openshift.master.pod.running.count
  47. description: Shows number of pods running
  48. type: int
  49. applications:
  50. - Openshift Master
  51. - key: openshift.master.pod.user.running.count
  52. description: Shows number of user pods running (non infrastructure pods)
  53. type: int
  54. applications:
  55. - Openshift Master
  56. - key: openshift.master.pod.total.count
  57. description: Shows total number of pods (running and non running)
  58. type: int
  59. applications:
  60. - Openshift Master
  61. - key: openshift.master.node.count
  62. description: Shows the total number of nodes found in the Openshift Cluster
  63. type: int
  64. applications:
  65. - Openshift Master
  66. - key: openshift.project.count
  67. description: Shows number of projects on a cluster
  68. type: int
  69. applications:
  70. - Openshift Master
  71. - key: openshift.master.pv.total.count
  72. description: Total number of Persistent Volumes in the Openshift Cluster
  73. type: int
  74. applications:
  75. - Openshift Master
  76. - key: openshift.master.pv.available.count
  77. description: Total number of Available Persistent Volumes in the Openshift Cluster
  78. type: int
  79. applications:
  80. - Openshift Master
  81. - key: openshift.master.pv.released.count
  82. description: Total number of Released Persistent Volumes in the Openshift Cluster
  83. type: int
  84. applications:
  85. - Openshift Master
  86. - key: openshift.master.pv.bound.count
  87. description: Total number of Bound Persistent Volumes in the Openshift Cluster
  88. type: int
  89. applications:
  90. - Openshift Master
  91. - key: openshift.master.pv.failed.count
  92. description: Total number of Failed Persistent Volumes in the Openshift Cluster
  93. type: int
  94. applications:
  95. - Openshift Master
  96. - key: openshift.master.skydns.port.open
  97. description: State of the SkyDNS port open and listening
  98. type: int
  99. applications:
  100. - Openshift Master
  101. - key: openshift.master.skydns.query
  102. description: SkyDNS can be queried or not
  103. type: int
  104. applications:
  105. - Openshift Master
  106. - key: openshift.master.etcd.create.success
  107. description: Show number of successful create actions
  108. type: int
  109. applications:
  110. - Openshift Etcd
  111. - key: openshift.master.etcd.create.fail
  112. description: Show number of failed create actions
  113. type: int
  114. applications:
  115. - Openshift Etcd
  116. - key: openshift.master.etcd.delete.success
  117. description: Show number of successful delete actions
  118. type: int
  119. applications:
  120. - Openshift Etcd
  121. - key: openshift.master.etcd.delete.fail
  122. description: Show number of failed delete actions
  123. type: int
  124. applications:
  125. - Openshift Etcd
  126. - key: openshift.master.etcd.get.success
  127. description: Show number of successful get actions
  128. type: int
  129. applications:
  130. - Openshift Etcd
  131. - key: openshift.master.etcd.get.fail
  132. description: Show number of failed get actions
  133. type: int
  134. applications:
  135. - Openshift Etcd
  136. - key: openshift.master.etcd.set.success
  137. description: Show number of successful set actions
  138. type: int
  139. applications:
  140. - Openshift Etcd
  141. - key: openshift.master.etcd.set.fail
  142. description: Show number of failed set actions
  143. type: int
  144. applications:
  145. - Openshift Etcd
  146. - key: openshift.master.etcd.update.success
  147. description: Show number of successful update actions
  148. type: int
  149. applications:
  150. - Openshift Etcd
  151. - key: openshift.master.etcd.update.fail
  152. description: Show number of failed update actions
  153. type: int
  154. applications:
  155. - Openshift Etcd
  156. - key: openshift.master.etcd.watchers
  157. description: Show number of etcd watchers
  158. type: int
  159. applications:
  160. - Openshift Etcd
  161. - key: openshift.master.etcd.ping
  162. description: etcd ping
  163. type: int
  164. applications:
  165. - Openshift Etcd
  166. - key: openshift.master.metric.ping
  167. description: "This check verifies that the https://master/metrics check is alive and communicating properly."
  168. type: int
  169. applications:
  170. - Openshift Master Metrics
  171. - key: openshift.master.nodesnotready.count
  172. description: "This check shows how many nodes in a cluster are in NotReady state."
  173. type: int
  174. applications:
  175. - Openshift Master
  176. - key: openshift.master.nodesnotschedulable.count
  177. description: "This check shows how many nodes in a cluster are not schedulable."
  178. type: int
  179. applications:
  180. - Openshift Master
  181. - key: openshift.master.apiserver.latency.summary.pods.quantile.list.5
  182. description: "Value from https://master/metrics. This is the time, in miliseconds, that 50% of the pod operations have taken to completed."
  183. type: int
  184. applications:
  185. - Openshift Master Metrics
  186. - key: openshift.master.apiserver.latency.summary.pods.quantile.list.9
  187. description: "Value from https://master/metrics. This is the time, in miliseconds, that 90% of the pod operations have taken to completed."
  188. type: int
  189. applications:
  190. - Openshift Master Metrics
  191. - key: openshift.master.apiserver.latency.summary.pods.quantile.list.99
  192. description: "Value from https://master/metrics. This is the time, in miliseconds, that 99% of the pod operations have taken to completed."
  193. type: int
  194. applications:
  195. - Openshift Master Metrics
  196. - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.5
  197. description: "Value from https://master/metrics. This is the time, in miliseconds, that 50% of the pod operations have taken to completed."
  198. type: int
  199. applications:
  200. - Openshift Master Metrics
  201. - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.9
  202. description: "Value from https://master/metrics. This is the time, in miliseconds, that 90% of the pod operations have taken to completed."
  203. type: int
  204. applications:
  205. - Openshift Master Metrics
  206. - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.99
  207. description: "Value from https://master/metrics. This is the time, in miliseconds, that 99% of the pod operations have taken to completed."
  208. type: int
  209. applications:
  210. - Openshift Master Metrics
  211. - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.5
  212. description: "Value from https://master/metrics. This is the time, in miliseconds, that 50% of the end to end scheduling operations have taken to completed."
  213. type: int
  214. applications:
  215. - Openshift Master Metrics
  216. - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.9
  217. description: "Value from https://master/metrics. This is the time, in miliseconds, that 90% of the end to end scheduling operations have taken to completed."
  218. type: int
  219. applications:
  220. - Openshift Master Metrics
  221. - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.99
  222. description: "Value from https://master/metrics. This is the time, in miliseconds, that 99% of the end to end scheduling operations have taken to completed."
  223. type: int
  224. applications:
  225. - Openshift Master Metrics
  226. ztriggers:
  227. - name: 'Openshift Master process not running on {HOST.NAME}'
  228. expression: '{Template Openshift Master:openshift.master.process.count.max(#3)}<1'
  229. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  230. priority: high
  231. - name: 'Too many Openshift Master processes running on {HOST.NAME}'
  232. expression: '{Template Openshift Master:openshift.master.process.count.min(#3)}>1'
  233. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  234. priority: high
  235. - name: 'Low number of etcd watchers on {HOST.NAME}'
  236. expression: '{Template Openshift Master:openshift.master.etcd.watchers.last(#1)}<10 and {Template Openshift Master:openshift.master.etcd.watchers.last(#2)}<10'
  237. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
  238. priority: avg
  239. - name: 'Etcd ping failed on {HOST.NAME}'
  240. expression: '{Template Openshift Master:openshift.master.etcd.ping.last(#1)}=0 and {Template Openshift Master:openshift.master.etcd.ping.last(#2)}=0'
  241. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
  242. priority: high
  243. - name: 'Number of users for Openshift Master on {HOST.NAME}'
  244. expression: '{Template Openshift Master:openshift.master.user.count.last()}=0'
  245. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  246. priority: info
  247. - name: 'There are no projects running on {HOST.NAME}'
  248. expression: '{Template Openshift Master:openshift.project.count.last()}=0'
  249. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  250. priority: info
  251. # Put triggers that depend on other triggers here (deps must be created first)
  252. - name: 'Application creation has failed on {HOST.NAME}'
  253. expression: '{Template Openshift Master:openshift.master.app.create.last(#1)}=1 and {Template Openshift Master:openshift.master.app.create.last(#2)}=1'
  254. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
  255. dependencies:
  256. - 'Openshift Master process not running on {HOST.NAME}'
  257. priority: avg
  258. - name: 'Application creation has failed multiple times in the last hour on {HOST.NAME}'
  259. expression: '{Template Openshift Master:openshift.master.app.create.sum(1h)}>3'
  260. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
  261. dependencies:
  262. - 'Openshift Master process not running on {HOST.NAME}'
  263. description: The application create loop has failed 4 or more times in the last hour
  264. priority: avg
  265. - name: 'Openshift Master API health check is failing on {HOST.NAME}'
  266. expression: '{Template Openshift Master:openshift.master.api.healthz.max(#3)}<1'
  267. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  268. priority: high
  269. - name: 'Openshift Master Local API health check is failing on {HOST.NAME}'
  270. expression: '{Template Openshift Master:openshift.master.local.api.healthz.max(#3)}<1'
  271. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  272. dependencies:
  273. - 'Openshift Master process not running on {HOST.NAME}'
  274. priority: high
  275. - name: 'Openshift Master API PING check is failing on {HOST.NAME}'
  276. expression: '{Template Openshift Master:openshift.master.api.ping.max(#3)}<1'
  277. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  278. priority: high
  279. - name: 'Openshift Master Local API PING check is failing on {HOST.NAME}'
  280. expression: '{Template Openshift Master:openshift.master.local.api.ping.max(#3)}<1'
  281. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  282. dependencies:
  283. - 'Openshift Master process not running on {HOST.NAME}'
  284. priority: high
  285. - name: 'Openshift Master metric PING check is failing on {HOST.NAME}'
  286. expression: '{Template Openshift Master:openshift.master.metric.ping.max(#3)}<1'
  287. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  288. dependencies:
  289. - 'Openshift Master process not running on {HOST.NAME}'
  290. priority: avg
  291. - name: 'One or more Docker Registries is unhealthy according to {HOST.NAME}'
  292. expression: '{Template Openshift Master:openshift.master.registry.healthy_pct.last(#2)}<100 and {Template Openshift Master:openshift.master.registry.healthy_pct.max(#2)}>50'
  293. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_registry.asciidoc'
  294. dependencies:
  295. - 'Openshift Master process not running on {HOST.NAME}'
  296. priority: avg
  297. - name: 'Multiple Docker Registries are unhealthy according to {HOST.NAME}'
  298. expression: '{Template Openshift Master:openshift.master.registry.healthy_pct.last(#2)}<51'
  299. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_registry.asciidoc'
  300. dependencies:
  301. - 'Openshift Master process not running on {HOST.NAME}'
  302. priority: high
  303. - name: 'SkyDNS port not listening on {HOST.NAME}'
  304. expression: '{Template Openshift Master:openshift.master.skydns.port.open.max(#3)}<1'
  305. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  306. dependencies:
  307. - 'Openshift Master process not running on {HOST.NAME}'
  308. priority: high
  309. - name: 'SkyDNS query failed on {HOST.NAME}'
  310. expression: '{Template Openshift Master:openshift.master.skydns.query.max(#3)}<1'
  311. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  312. dependencies:
  313. - 'Openshift Master API health check is failing on {HOST.NAME}'
  314. priority: high
  315. - name: 'Hosts not ready according to {HOST.NAME}'
  316. expression: '{Template Openshift Master:openshift.master.nodesnotready.count.last(#2)}>0'
  317. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_node.asciidoc'
  318. dependencies:
  319. - 'Openshift Master process not running on {HOST.NAME}'
  320. priority: high
  321. zgraphs:
  322. - name: Openshift Master API Server Latency Pods LIST Quantiles
  323. width: 900
  324. height: 200
  325. graph_items:
  326. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.5
  327. color: red
  328. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.9
  329. color: blue
  330. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.99
  331. color: orange
  332. - name: Openshift Master API Server Latency Pods WATCHLIST Quantiles
  333. width: 900
  334. height: 200
  335. graph_items:
  336. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.5
  337. color: red
  338. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.9
  339. color: blue
  340. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.99
  341. color: orange
  342. - name: Openshift Master Scheduler End to End Latency Quantiles
  343. width: 900
  344. height: 200
  345. graph_items:
  346. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.5
  347. color: red
  348. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.9
  349. color: blue
  350. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.99
  351. color: orange