elasticsearch.conf 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # you can disable an alarm notification by setting the 'to' line to: silent
  2. # 'red' is a threshold, can't lookup the 'red' dimension - using simple pattern is a workaround.
  3. template: elasticsearch_cluster_health_status_red
  4. on: elasticsearch.cluster_health_status
  5. class: Errors
  6. type: SearchEngine
  7. component: Elasticsearch
  8. lookup: average -5s unaligned of *ed
  9. every: 10s
  10. units: status
  11. crit: $this == 1
  12. delay: down 5m multiplier 1.5 max 1h
  13. info: cluster health status is red.
  14. to: sysadmin
  15. # the idea of '-10m' is to handle yellow status after node restart,
  16. # (usually) no action is required because Elasticsearch will automatically restore the green status.
  17. template: elasticsearch_cluster_health_status_yellow
  18. on: elasticsearch.cluster_health_status
  19. class: Errors
  20. type: SearchEngine
  21. component: Elasticsearch
  22. lookup: average -10m unaligned of yellow
  23. every: 1m
  24. units: status
  25. warn: $this == 1
  26. delay: down 5m multiplier 1.5 max 1h
  27. info: cluster health status is yellow.
  28. to: sysadmin
  29. template: elasticsearch_node_index_health_red
  30. on: elasticsearch.node_index_health
  31. class: Errors
  32. type: SearchEngine
  33. component: Elasticsearch
  34. lookup: average -5s unaligned of *ed
  35. every: 10s
  36. units: status
  37. warn: $this == 1
  38. delay: down 5m multiplier 1.5 max 1h
  39. info: node index $label:index health status is red.
  40. to: sysadmin
  41. # don't convert 'lookup' value to seconds in 'calc' due to UI showing seconds as hh:mm:ss (0 as now).
  42. template: elasticsearch_node_indices_search_time_query
  43. on: elasticsearch.node_indices_search_time
  44. class: Workload
  45. type: SearchEngine
  46. component: Elasticsearch
  47. lookup: average -10m unaligned of query
  48. every: 10s
  49. units: milliseconds
  50. warn: $this > (($status >= $WARNING) ? (20 * 1000) : (30 * 1000))
  51. delay: down 5m multiplier 1.5 max 1h
  52. info: search performance is degraded, queries run slowly.
  53. to: sysadmin
  54. template: elasticsearch_node_indices_search_time_fetch
  55. on: elasticsearch.node_indices_search_time
  56. class: Workload
  57. type: SearchEngine
  58. component: Elasticsearch
  59. lookup: average -10m unaligned of fetch
  60. every: 10s
  61. units: milliseconds
  62. warn: $this > (($status >= $WARNING) ? (3 * 1000) : (5 * 1000))
  63. crit: $this > (($status == $CRITICAL) ? (5 * 1000) : (30 * 1000))
  64. delay: down 5m multiplier 1.5 max 1h
  65. info: search performance is degraded, fetches run slowly.
  66. to: sysadmin