template_openshift_master.yml 14 KB

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