You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

alerts.json 6.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. [
  2. {
  3. "cate": "prometheus",
  4. "datasource_ids": [
  5. 0
  6. ],
  7. "name": "springboot HEAP内存使用率大于20%",
  8. "note": "",
  9. "prod": "metric",
  10. "algorithm": "",
  11. "algo_params": null,
  12. "delay": 0,
  13. "severity": 0,
  14. "severities": [
  15. 2
  16. ],
  17. "disabled": 0,
  18. "prom_for_duration": 60,
  19. "prom_ql": "",
  20. "rule_config": {
  21. "queries": [
  22. {
  23. "prom_ql": "sum(jvm_memory_used_bytes{instance=~\".+\", area=\"heap\"})*100/sum(jvm_memory_max_bytes{instance=~\".+\", area=\"heap\"}) >20",
  24. "severity": 2
  25. }
  26. ]
  27. },
  28. "prom_eval_interval": 30,
  29. "enable_stime": "00:00",
  30. "enable_stimes": [
  31. "00:00"
  32. ],
  33. "enable_etime": "23:59",
  34. "enable_etimes": [
  35. "23:59"
  36. ],
  37. "enable_days_of_week": [
  38. "0",
  39. "1",
  40. "2",
  41. "3",
  42. "4",
  43. "5",
  44. "6"
  45. ],
  46. "enable_days_of_weeks": [
  47. [
  48. "0",
  49. "1",
  50. "2",
  51. "3",
  52. "4",
  53. "5",
  54. "6"
  55. ]
  56. ],
  57. "enable_in_bg": 0,
  58. "notify_recovered": 1,
  59. "notify_channels": [],
  60. "notify_repeat_step": 60,
  61. "notify_max_number": 0,
  62. "recover_duration": 0,
  63. "callbacks": [],
  64. "runbook_url": "",
  65. "append_tags": [],
  66. "annotations": {}
  67. },
  68. {
  69. "cate": "prometheus",
  70. "datasource_ids": [
  71. 0
  72. ],
  73. "name": "springboot HTTP请求延迟大于10s",
  74. "note": "",
  75. "prod": "metric",
  76. "algorithm": "",
  77. "algo_params": null,
  78. "delay": 0,
  79. "severity": 0,
  80. "severities": [
  81. 2
  82. ],
  83. "disabled": 0,
  84. "prom_for_duration": 60,
  85. "prom_ql": "",
  86. "rule_config": {
  87. "queries": [
  88. {
  89. "prom_ql": "max(http_server_requests_seconds_max{instance=~\".+\", status!~\"5..\"}) > 10",
  90. "severity": 2
  91. }
  92. ]
  93. },
  94. "prom_eval_interval": 30,
  95. "enable_stime": "00:00",
  96. "enable_stimes": [
  97. "00:00"
  98. ],
  99. "enable_etime": "23:59",
  100. "enable_etimes": [
  101. "23:59"
  102. ],
  103. "enable_days_of_week": [
  104. "0",
  105. "1",
  106. "2",
  107. "3",
  108. "4",
  109. "5",
  110. "6"
  111. ],
  112. "enable_days_of_weeks": [
  113. [
  114. "0",
  115. "1",
  116. "2",
  117. "3",
  118. "4",
  119. "5",
  120. "6"
  121. ]
  122. ],
  123. "enable_in_bg": 0,
  124. "notify_recovered": 1,
  125. "notify_channels": [],
  126. "notify_repeat_step": 60,
  127. "notify_max_number": 0,
  128. "recover_duration": 0,
  129. "callbacks": [],
  130. "runbook_url": "",
  131. "append_tags": [],
  132. "annotations": {}
  133. },
  134. {
  135. "cate": "prometheus",
  136. "datasource_ids": [
  137. 0
  138. ],
  139. "name": "springboot HTTP错误数",
  140. "note": "",
  141. "prod": "metric",
  142. "algorithm": "",
  143. "algo_params": null,
  144. "delay": 0,
  145. "severity": 0,
  146. "severities": [
  147. 2
  148. ],
  149. "disabled": 0,
  150. "prom_for_duration": 60,
  151. "prom_ql": "",
  152. "rule_config": {
  153. "queries": [
  154. {
  155. "prom_ql": "sum(rate(http_server_requests_seconds_count{instance=~\".+\", status=~\"5.+\"}[1m])) != 0",
  156. "severity": 2
  157. }
  158. ]
  159. },
  160. "prom_eval_interval": 30,
  161. "enable_stime": "00:00",
  162. "enable_stimes": [
  163. "00:00"
  164. ],
  165. "enable_etime": "23:59",
  166. "enable_etimes": [
  167. "23:59"
  168. ],
  169. "enable_days_of_week": [
  170. "0",
  171. "1",
  172. "2",
  173. "3",
  174. "4",
  175. "5",
  176. "6"
  177. ],
  178. "enable_days_of_weeks": [
  179. [
  180. "0",
  181. "1",
  182. "2",
  183. "3",
  184. "4",
  185. "5",
  186. "6"
  187. ]
  188. ],
  189. "enable_in_bg": 0,
  190. "notify_recovered": 1,
  191. "notify_channels": [],
  192. "notify_repeat_step": 60,
  193. "notify_max_number": 0,
  194. "recover_duration": 0,
  195. "callbacks": [],
  196. "runbook_url": "",
  197. "append_tags": [],
  198. "annotations": {}
  199. },
  200. {
  201. "cate": "prometheus",
  202. "datasource_ids": [
  203. 0
  204. ],
  205. "name": "springboot NOHEAP内存使用率大于30%",
  206. "note": "",
  207. "prod": "metric",
  208. "algorithm": "",
  209. "algo_params": null,
  210. "delay": 0,
  211. "severity": 0,
  212. "severities": [
  213. 2
  214. ],
  215. "disabled": 0,
  216. "prom_for_duration": 60,
  217. "prom_ql": "",
  218. "rule_config": {
  219. "queries": [
  220. {
  221. "prom_ql": "sum(jvm_memory_used_bytes{instance=~\".+\", area=\"nonheap\"})*100/sum(jvm_memory_max_bytes{instance=~\".+\", area=\"nonheap\"}) > 30",
  222. "severity": 2
  223. }
  224. ]
  225. },
  226. "prom_eval_interval": 30,
  227. "enable_stime": "00:00",
  228. "enable_stimes": [
  229. "00:00"
  230. ],
  231. "enable_etime": "23:59",
  232. "enable_etimes": [
  233. "23:59"
  234. ],
  235. "enable_days_of_week": [
  236. "0",
  237. "1",
  238. "2",
  239. "3",
  240. "4",
  241. "5",
  242. "6"
  243. ],
  244. "enable_days_of_weeks": [
  245. [
  246. "0",
  247. "1",
  248. "2",
  249. "3",
  250. "4",
  251. "5",
  252. "6"
  253. ]
  254. ],
  255. "enable_in_bg": 0,
  256. "notify_recovered": 1,
  257. "notify_channels": [],
  258. "notify_repeat_step": 60,
  259. "notify_max_number": 0,
  260. "recover_duration": 0,
  261. "callbacks": [],
  262. "runbook_url": "",
  263. "append_tags": [],
  264. "annotations": {}
  265. },
  266. {
  267. "cate": "prometheus",
  268. "datasource_ids": [
  269. 0
  270. ],
  271. "name": "springboot 事件错误数",
  272. "note": "",
  273. "prod": "metric",
  274. "algorithm": "",
  275. "algo_params": null,
  276. "delay": 0,
  277. "severity": 0,
  278. "severities": [
  279. 2
  280. ],
  281. "disabled": 0,
  282. "prom_for_duration": 60,
  283. "prom_ql": "",
  284. "rule_config": {
  285. "queries": [
  286. {
  287. "prom_ql": "increase(logback_events_total{instance=\"$instance\"}[1m]) > 0",
  288. "severity": 2
  289. }
  290. ]
  291. },
  292. "prom_eval_interval": 30,
  293. "enable_stime": "00:00",
  294. "enable_stimes": [
  295. "00:00"
  296. ],
  297. "enable_etime": "23:59",
  298. "enable_etimes": [
  299. "23:59"
  300. ],
  301. "enable_days_of_week": [
  302. "0",
  303. "1",
  304. "2",
  305. "3",
  306. "4",
  307. "5",
  308. "6"
  309. ],
  310. "enable_days_of_weeks": [
  311. [
  312. "0",
  313. "1",
  314. "2",
  315. "3",
  316. "4",
  317. "5",
  318. "6"
  319. ]
  320. ],
  321. "enable_in_bg": 0,
  322. "notify_recovered": 1,
  323. "notify_channels": [],
  324. "notify_repeat_step": 60,
  325. "notify_max_number": 0,
  326. "recover_duration": 0,
  327. "callbacks": [],
  328. "runbook_url": "",
  329. "append_tags": [],
  330. "annotations": {}
  331. }
  332. ]