template_openshift_master.yml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. ---
  2. g_template_openshift_master:
  3. name: Template Openshift Master
  4. zitems:
  5. - name: create_app
  6. applications:
  7. - Openshift Master
  8. key: create_app
  9. - key: openshift.master.registry.healthz
  10. description: "Shows the health status of the cluster's docker registry"
  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"
  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://master_host/healthz"
  26. type: int
  27. data_type: bool
  28. applications:
  29. - Openshift Master
  30. - key: openshift.master.user.count
  31. description: Shows number of users in a cluster
  32. type: int
  33. applications:
  34. - Openshift Master
  35. - key: openshift.master.pod.running.count
  36. description: Shows number of pods running
  37. type: int
  38. applications:
  39. - Openshift Master
  40. - key: openshift.master.pod.user.running.count
  41. description: Shows number of user pods running (non infrastructure pods)
  42. type: int
  43. applications:
  44. - Openshift Master
  45. - key: openshift.master.pod.total.count
  46. description: Shows total number of pods (running and non running)
  47. type: int
  48. applications:
  49. - Openshift Master
  50. - key: openshift.master.node.count
  51. description: Shows the total number of nodes found in the Openshift Cluster
  52. type: int
  53. applications:
  54. - Openshift Master
  55. - key: openshift.project.count
  56. description: Shows number of projects on a cluster
  57. type: int
  58. applications:
  59. - Openshift Master
  60. - key: openshift.master.pv.total.count
  61. description: Total number of Persistent Volumes in the Openshift Cluster
  62. type: int
  63. applications:
  64. - Openshift Master
  65. - key: openshift.master.pv.available.count
  66. description: Total number of Available Persistent Volumes in the Openshift Cluster
  67. type: int
  68. applications:
  69. - Openshift Master
  70. - key: openshift.master.pv.released.count
  71. description: Total number of Released Persistent Volumes in the Openshift Cluster
  72. type: int
  73. applications:
  74. - Openshift Master
  75. - key: openshift.master.pv.bound.count
  76. description: Total number of Bound Persistent Volumes in the Openshift Cluster
  77. type: int
  78. applications:
  79. - Openshift Master
  80. - key: openshift.master.pv.failed.count
  81. description: Total number of Failed Persistent Volumes in the Openshift Cluster
  82. type: int
  83. applications:
  84. - Openshift Master
  85. - key: openshift.master.etcd.create.success
  86. description: Show number of successful create actions
  87. type: int
  88. applications:
  89. - Openshift Etcd
  90. - key: openshift.master.etcd.create.fail
  91. description: Show number of failed create actions
  92. type: int
  93. applications:
  94. - Openshift Etcd
  95. - key: openshift.master.etcd.delete.success
  96. description: Show number of successful delete actions
  97. type: int
  98. applications:
  99. - Openshift Etcd
  100. - key: openshift.master.etcd.delete.fail
  101. description: Show number of failed delete actions
  102. type: int
  103. applications:
  104. - Openshift Etcd
  105. - key: openshift.master.etcd.get.success
  106. description: Show number of successful get actions
  107. type: int
  108. applications:
  109. - Openshift Etcd
  110. - key: openshift.master.etcd.get.fail
  111. description: Show number of failed get actions
  112. type: int
  113. applications:
  114. - Openshift Etcd
  115. - key: openshift.master.etcd.set.success
  116. description: Show number of successful set actions
  117. type: int
  118. applications:
  119. - Openshift Etcd
  120. - key: openshift.master.etcd.set.fail
  121. description: Show number of failed set actions
  122. type: int
  123. applications:
  124. - Openshift Etcd
  125. - key: openshift.master.etcd.update.success
  126. description: Show number of successful update actions
  127. type: int
  128. applications:
  129. - Openshift Etcd
  130. - key: openshift.master.etcd.update.fail
  131. description: Show number of failed update actions
  132. type: int
  133. applications:
  134. - Openshift Etcd
  135. - key: openshift.master.etcd.watchers
  136. description: Show number of etcd watchers
  137. type: int
  138. applications:
  139. - Openshift Etcd
  140. - key: openshift.master.etcd.ping
  141. description: etcd ping
  142. type: int
  143. applications:
  144. - Openshift Etcd
  145. - key: openshift.master.metric.ping
  146. description: "This check verifies that the https://master/metrics check is alive and communicating properly."
  147. type: int
  148. applications:
  149. - Openshift Master Metrics
  150. - key: openshift.master.apiserver.latency.summary.pods.quantile.list.5
  151. description: "Value from https://master/metrics. This is the time, in miliseconds, that 50% of the pod operations have taken to completed."
  152. type: int
  153. applications:
  154. - Openshift Master Metrics
  155. - key: openshift.master.apiserver.latency.summary.pods.quantile.list.9
  156. description: "Value from https://master/metrics. This is the time, in miliseconds, that 90% of the pod operations have taken to completed."
  157. type: int
  158. applications:
  159. - Openshift Master Metrics
  160. - key: openshift.master.apiserver.latency.summary.pods.quantile.list.99
  161. description: "Value from https://master/metrics. This is the time, in miliseconds, that 99% of the pod operations have taken to completed."
  162. type: int
  163. applications:
  164. - Openshift Master Metrics
  165. - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.5
  166. description: "Value from https://master/metrics. This is the time, in miliseconds, that 50% of the pod operations have taken to completed."
  167. type: int
  168. applications:
  169. - Openshift Master Metrics
  170. - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.9
  171. description: "Value from https://master/metrics. This is the time, in miliseconds, that 90% of the pod operations have taken to completed."
  172. type: int
  173. applications:
  174. - Openshift Master Metrics
  175. - key: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.99
  176. description: "Value from https://master/metrics. This is the time, in miliseconds, that 99% of the pod operations have taken to completed."
  177. type: int
  178. applications:
  179. - Openshift Master Metrics
  180. - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.5
  181. 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."
  182. type: int
  183. applications:
  184. - Openshift Master Metrics
  185. - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.9
  186. 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."
  187. type: int
  188. applications:
  189. - Openshift Master Metrics
  190. - key: openshift.master.scheduler.e2e.scheduling.latency.quantile.99
  191. 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."
  192. type: int
  193. applications:
  194. - Openshift Master Metrics
  195. ztriggers:
  196. - name: 'Openshift Master process not running on {HOST.NAME}'
  197. expression: '{Template Openshift Master:openshift.master.process.count.max(#3)}<1'
  198. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  199. priority: high
  200. - name: 'Too many Openshift Master processes running on {HOST.NAME}'
  201. expression: '{Template Openshift Master:openshift.master.process.count.min(#3)}>1'
  202. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  203. priority: high
  204. - name: 'Low number of etcd watchers on {HOST.NAME}'
  205. expression: '{Template Openshift Master:openshift.master.etcd.watchers.last(#1)}<10 and {Template Openshift Master:openshift.master.etcd.watchers.last(#2)}<10'
  206. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
  207. priority: avg
  208. - name: 'Etcd ping failed on {HOST.NAME}'
  209. expression: '{Template Openshift Master:openshift.master.etcd.ping.last(#1)}=0 and {Template Openshift Master:openshift.master.etcd.ping.last(#2)}=0'
  210. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_etcd.asciidoc'
  211. priority: high
  212. - name: 'Number of users for Openshift Master on {HOST.NAME}'
  213. expression: '{Template Openshift Master:openshift.master.user.count.last()}=0'
  214. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  215. priority: info
  216. - name: 'There are no projects running on {HOST.NAME}'
  217. expression: '{Template Openshift Master:openshift.project.count.last()}=0'
  218. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  219. priority: info
  220. # Put triggers that depend on other triggers here (deps must be created first)
  221. - name: 'Application creation has failed on {HOST.NAME}'
  222. expression: '{Template Openshift Master:create_app.last(#1)}=1 and {Template Openshift Master:create_app.last(#2)}=1'
  223. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/check_create_app.asciidoc'
  224. dependencies:
  225. - 'Openshift Master process not running on {HOST.NAME}'
  226. priority: avg
  227. - name: 'Openshift Master API health check is failing on {HOST.NAME}'
  228. expression: '{Template Openshift Master:openshift.master.api.healthz.max(#3)}<1'
  229. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  230. dependencies:
  231. - 'Openshift Master process not running on {HOST.NAME}'
  232. priority: high
  233. - name: 'Openshift Master API PING check is failing on {HOST.NAME}'
  234. expression: '{Template Openshift Master:openshift.master.api.ping.max(#3)}<1'
  235. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  236. dependencies:
  237. - 'Openshift Master process not running on {HOST.NAME}'
  238. priority: high
  239. - name: 'Openshift Master metric PING check is failing on {HOST.NAME}'
  240. expression: '{Template Openshift Master:openshift.master.metric.ping.max(#3)}<1'
  241. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  242. dependencies:
  243. - 'Openshift Master process not running on {HOST.NAME}'
  244. priority: avg
  245. - name: 'Docker Registry check failed on {HOST.NAME}'
  246. expression: '{Template Openshift Master:openshift.master.registry.healthz.max(#2)}<1'
  247. url: 'https://github.com/openshift/ops-sop/blob/master/V3/Alerts/openshift_master.asciidoc'
  248. dependencies:
  249. - 'Openshift Master process not running on {HOST.NAME}'
  250. priority: high
  251. zgraphs:
  252. - name: Openshift Master API Server Latency Pods LIST Quantiles
  253. width: 900
  254. height: 200
  255. graph_items:
  256. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.5
  257. color: red
  258. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.9
  259. color: blue
  260. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.list.99
  261. color: orange
  262. - name: Openshift Master API Server Latency Pods WATCHLIST Quantiles
  263. width: 900
  264. height: 200
  265. graph_items:
  266. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.5
  267. color: red
  268. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.9
  269. color: blue
  270. - item_name: openshift.master.apiserver.latency.summary.pods.quantile.watchlist.99
  271. color: orange
  272. - name: Openshift Master Scheduler End to End Latency Quantiles
  273. width: 900
  274. height: 200
  275. graph_items:
  276. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.5
  277. color: red
  278. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.9
  279. color: blue
  280. - item_name: openshift.master.scheduler.e2e.scheduling.latency.quantile.99
  281. color: orange