metadata.yaml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. # yamllint disable rule:line-length
  2. ---
  3. - id: 'notify-alerta'
  4. meta:
  5. name: 'Alerta'
  6. link: 'https://alerta.io/'
  7. categories:
  8. - notify.agent
  9. icon_filename: 'alerta.png'
  10. keywords:
  11. - Alerta
  12. overview:
  13. notification_description: |
  14. The [Alerta](https://alerta.io/) monitoring system is a tool used to consolidate and de-duplicate alerts from multiple sources for quick ‘at-a-glance’ visualization. With just one system you can monitor alerts from many other monitoring tools on a single screen.
  15. You can send Netdata alerts to Alerta to see alerts coming from many Netdata hosts or also from a multi-host Netdata configuration.
  16. notification_limitations: ''
  17. setup:
  18. prerequisites:
  19. list:
  20. - title: ''
  21. description: |
  22. - A working Alerta instance
  23. - An Alerta API key (if authentication in Alerta is enabled)
  24. - Access to the terminal where Netdata Agent is running
  25. configuration:
  26. file:
  27. name: 'health_alarm_notify.conf'
  28. options:
  29. description: 'The following options can be defined for this notification'
  30. folding:
  31. title: 'Config Options'
  32. enabled: true
  33. list:
  34. - name: 'SEND_ALERTA'
  35. default_value: ''
  36. description: "Set `SEND_ALERTA` to YES"
  37. required: true
  38. - name: 'ALERTA_WEBHOOK_URL'
  39. default_value: ''
  40. description: "set `ALERTA_WEBHOOK_URL` to the API url you defined when you installed the Alerta server."
  41. required: true
  42. - name: 'ALERTA_API_KEY'
  43. default_value: ''
  44. description: "Set `ALERTA_API_KEY` to your API key."
  45. required: true
  46. detailed_description: |
  47. You will need an API key to send messages from any source, if Alerta is configured to use authentication (recommended). To create a new API key:
  48. 1. Go to Configuration > API Keys.
  49. 2. Create a new API key called "netdata" with `write:alerts` permission.
  50. - name: 'DEFAULT_RECIPIENT_ALERTA'
  51. default_value: ''
  52. description: "Set `DEFAULT_RECIPIENT_ALERTA` to the default recipient environment you want the alert notifications to be sent to. All roles will default to this variable if left unconfigured."
  53. required: true
  54. - name: 'DEFAULT_RECIPIENT_CUSTOM'
  55. default_value: ''
  56. description: "Set different recipient environments per role, by editing `DEFAULT_RECIPIENT_CUSTOM` with the environment name of your choice"
  57. required: false
  58. detailed_description: |
  59. The `DEFAULT_RECIPIENT_CUSTOM` can be edited in the following entries at the bottom of the same file:
  60. ```conf
  61. role_recipients_alerta[sysadmin]="Systems"
  62. role_recipients_alerta[domainadmin]="Domains"
  63. role_recipients_alerta[dba]="Databases Systems"
  64. role_recipients_alerta[webmaster]="Marketing Development"
  65. role_recipients_alerta[proxyadmin]="Proxy"
  66. role_recipients_alerta[sitemgr]="Sites"
  67. ```
  68. The values you provide should be defined as environments in `/etc/alertad.conf` with `ALLOWED_ENVIRONMENTS` option.
  69. examples:
  70. folding:
  71. enabled: true
  72. title: ''
  73. list:
  74. - name: 'Basic Configuration'
  75. folding:
  76. enabled: false
  77. description: ''
  78. config: |
  79. #------------------------------------------------------------------------------
  80. # alerta (alerta.io) global notification options
  81. SEND_ALERTA="YES"
  82. ALERTA_WEBHOOK_URL="http://yourserver/alerta/api"
  83. ALERTA_API_KEY="INSERT_YOUR_API_KEY_HERE"
  84. DEFAULT_RECIPIENT_ALERTA="Production"
  85. troubleshooting:
  86. problems:
  87. list: []