template_openshift_master.yml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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.app.build.create
  10. description: "check the app create with a build process"
  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: 'Etcd ping failed on {HOST.NAME}'
  236. expression: '{Template Openshift Master:openshift.master.etcd.ping.last(#1)}=0 and {Template Openshift Master:openshift.master.etcd.ping.last(#2)}=0'
  237. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
  238. priority: high
  239. - name: 'Number of users for Openshift Master on {HOST.NAME}'
  240. expression: '{Template Openshift Master:openshift.master.user.count.last()}=0'
  241. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  242. priority: info
  243. - name: 'There are no projects running on {HOST.NAME}'
  244. expression: '{Template Openshift Master:openshift.project.count.last()}=0'
  245. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  246. priority: info
  247. # Put triggers that depend on other triggers here (deps must be created first)
  248. - name: 'Application creation has failed on {HOST.NAME}'
  249. expression: '{Template Openshift Master:openshift.master.app.create.last(#1)}=1 and {Template Openshift Master:openshift.master.app.create.last(#2)}=1'
  250. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
  251. dependencies:
  252. - 'Openshift Master process not running on {HOST.NAME}'
  253. priority: avg
  254. - name: 'Application creation with build has failed on {HOST.NAME}'
  255. expression: '{Template Openshift Master:openshift.master.app.build.create.last(#1)}=1 and {Template Openshift Master:openshift.master.app.build.create.last(#2)}=1'
  256. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
  257. dependencies:
  258. - 'Openshift Master process not running on {HOST.NAME}'
  259. priority: avg
  260. - name: 'Application creation has failed multiple times in the last hour on {HOST.NAME}'
  261. expression: '{Template Openshift Master:openshift.master.app.create.sum(1h)}>3'
  262. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
  263. dependencies:
  264. - 'Openshift Master process not running on {HOST.NAME}'
  265. description: The application create loop has failed 4 or more times in the last hour
  266. priority: avg
  267. - name: 'Application with build creation has failed multiple times in the last hour on {HOST.NAME}'
  268. expression: '{Template Openshift Master:openshift.master.app.build.create.sum(1h)}>3'
  269. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
  270. dependencies:
  271. - 'Openshift Master process not running on {HOST.NAME}'
  272. description: The application create loop has failed 4 or more times in the last hour
  273. priority: avg
  274. - name: 'Openshift Master API health check is failing on {HOST.NAME}'
  275. expression: '{Template Openshift Master:openshift.master.api.healthz.max(#3)}<1'
  276. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  277. priority: high
  278. - name: 'Openshift Master Local API health check is failing on {HOST.NAME}'
  279. expression: '{Template Openshift Master:openshift.master.local.api.healthz.max(#3)}<1'
  280. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  281. dependencies:
  282. - 'Openshift Master process not running on {HOST.NAME}'
  283. priority: high
  284. - name: 'Openshift Master API PING check is failing on {HOST.NAME}'
  285. expression: '{Template Openshift Master:openshift.master.api.ping.max(#3)}<1'
  286. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  287. priority: high
  288. - name: 'Openshift Master Local API PING check is failing on {HOST.NAME}'
  289. expression: '{Template Openshift Master:openshift.master.local.api.ping.max(#3)}<1'
  290. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  291. dependencies:
  292. - 'Openshift Master process not running on {HOST.NAME}'
  293. priority: high
  294. - name: 'Openshift Master metric PING check is failing on {HOST.NAME}'
  295. expression: '{Template Openshift Master:openshift.master.metric.ping.max(#3)}<1'
  296. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  297. dependencies:
  298. - 'Openshift Master process not running on {HOST.NAME}'
  299. priority: avg
  300. - name: 'SkyDNS port not listening on {HOST.NAME}'
  301. expression: '{Template Openshift Master:openshift.master.skydns.port.open.max(#3)}<1'
  302. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  303. dependencies:
  304. - 'Openshift Master process not running on {HOST.NAME}'
  305. priority: high
  306. - name: 'SkyDNS query failed on {HOST.NAME}'
  307. expression: '{Template Openshift Master:openshift.master.skydns.query.max(#3)}<1'
  308. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  309. dependencies:
  310. - 'Openshift Master API health check is failing on {HOST.NAME}'
  311. priority: high
  312. - name: 'Hosts not ready according to {HOST.NAME}'
  313. expression: '{Template Openshift Master:openshift.master.nodesnotready.count.last(#2)}>0'
  314. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_node.asciidoc'
  315. dependencies:
  316. - 'Openshift Master process not running on {HOST.NAME}'
  317. priority: high
  318. zgraphs:
  319. - name: Openshift Master API Server Latency Pods LIST Quantiles
  320. width: 900
  321. height: 200
  322. graph_items:
  323. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.5
  324. color: red
  325. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.9
  326. color: blue
  327. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.99
  328. color: orange
  329. - name: Openshift Master API Server Latency Pods WATCHLIST Quantiles
  330. width: 900
  331. height: 200
  332. graph_items:
  333. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.5
  334. color: red
  335. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.9
  336. color: blue
  337. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.99
  338. color: orange
  339. - name: Openshift Master Scheduler End to End Latency Quantiles
  340. width: 900
  341. height: 200
  342. graph_items:
  343. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.5
  344. color: red
  345. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.9
  346. color: blue
  347. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.99
  348. color: orange