template_openshift_master.yml 16 KB

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