metadata.yaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # yamllint disable rule:line-length
  2. ---
  3. - id: 'notify-rocketchat'
  4. meta:
  5. name: 'RocketChat'
  6. link: 'https://rocket.chat/'
  7. categories:
  8. - notify.agent
  9. icon_filename: 'rocketchat.png'
  10. keywords:
  11. - RocketChat
  12. overview:
  13. notification_description: |
  14. Send notifications to Rocket.Chat using Netdata's Agent alert notification feature, which supports dozens of endpoints, user roles, and more.
  15. notification_limitations: ''
  16. setup:
  17. prerequisites:
  18. list:
  19. - title: ''
  20. description: |
  21. - The incoming webhook URL as given by RocketChat. You can use the same on all your Netdata servers (or you can have multiple if you like - your decision).
  22. - One or more channels to post the messages to
  23. - Access to the terminal where Netdata Agent is running
  24. configuration:
  25. file:
  26. name: 'health_alarm_notify.conf'
  27. options:
  28. description: 'The following options can be defined for this notification'
  29. folding:
  30. title: 'Config Options'
  31. enabled: true
  32. list:
  33. - name: 'SEND_ROCKETCHAT'
  34. default_value: 'YES'
  35. description: "Set `SEND_ROCKETCHAT` to `YES`"
  36. required: true
  37. - name: 'ROCKETCHAT_WEBHOOK_URL'
  38. default_value: ''
  39. description: "set `ROCKETCHAT_WEBHOOK_URL` to your webhook URL."
  40. required: true
  41. - name: 'DEFAULT_RECIPIENT_ROCKETCHAT'
  42. default_value: ''
  43. description: "Set `DEFAULT_RECIPIENT_ROCKETCHAT` to the channel you want the alert notifications to be sent to. You can define multiple channels like this: `alerts` `systems`."
  44. required: true
  45. detailed_description: |
  46. All roles will default to this variable if left unconfigured.
  47. The `DEFAULT_RECIPIENT_ROCKETCHAT` can be edited in the following entries at the bottom of the same file:
  48. ```conf
  49. role_recipients_rocketchat[sysadmin]="systems"
  50. role_recipients_rocketchat[domainadmin]="domains"
  51. role_recipients_rocketchat[dba]="databases systems"
  52. role_recipients_rocketchat[webmaster]="marketing development"
  53. role_recipients_rocketchat[proxyadmin]="proxy_admin"
  54. role_recipients_rocketchat[sitemgr]="sites"
  55. ```
  56. examples:
  57. folding:
  58. enabled: true
  59. title: ''
  60. list:
  61. - name: 'Basic Configuration'
  62. folding:
  63. enabled: false
  64. description: ''
  65. config: |
  66. #------------------------------------------------------------------------------
  67. # rocketchat (rocket.chat) global notification options
  68. SEND_ROCKETCHAT="YES"
  69. ROCKETCHAT_WEBHOOK_URL="<your_incoming_webhook_url>"
  70. DEFAULT_RECIPIENT_ROCKETCHAT="monitoring_alarms"
  71. troubleshooting:
  72. problems:
  73. list: []