metadata.yaml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # yamllint disable rule:line-length
  2. ---
  3. - id: 'notify-teams'
  4. meta:
  5. name: 'Microsoft Teams'
  6. link: 'https://www.microsoft.com/en-us/microsoft-teams/log-in'
  7. categories:
  8. - notify.agent
  9. icon_filename: 'msteams.svg'
  10. keywords:
  11. - Microsoft
  12. - Teams
  13. - MS teams
  14. overview:
  15. notification_description: |
  16. You can send Netdata alerts to Microsoft Teams using Netdata's Agent alert notification feature, which supports dozens of endpoints, user roles, and more.
  17. notification_limitations: ''
  18. setup:
  19. prerequisites:
  20. list:
  21. - title: ''
  22. description: |
  23. - The incoming webhook URL as given by Microsoft Teams. You can use the same on all your Netdata servers (or you can have multiple if you like).
  24. - One or more channels to post the messages to
  25. - Access to the terminal where Netdata Agent is running
  26. configuration:
  27. file:
  28. name: 'health_alarm_notify.conf'
  29. options:
  30. description: 'The following options can be defined for this notification'
  31. folding:
  32. title: 'Config Options'
  33. enabled: true
  34. list:
  35. - name: 'SEND_MSTEAMS'
  36. default_value: 'YES'
  37. description: "Set `SEND_MSTEAMS` to YES"
  38. required: true
  39. - name: 'MSTEAMS_WEBHOOK_URL'
  40. default_value: ''
  41. description: "set `MSTEAMS_WEBHOOK_URL` to the incoming webhook URL as given by Microsoft Teams."
  42. required: true
  43. - name: 'DEFAULT_RECIPIENT_MSTEAMS'
  44. default_value: ''
  45. description: "Set `DEFAULT_RECIPIENT_MSTEAMS` to the encoded Microsoft Teams channel name you want the alert notifications to be sent to."
  46. required: true
  47. detailed_description: |
  48. In Microsoft Teams the channel name is encoded in the URI after `/IncomingWebhook/`. You can define multiple channels like this: `CHANNEL1` `CHANNEL2`.
  49. All roles will default to this variable if left unconfigured.
  50. You can have different channels per role, by editing `DEFAULT_RECIPIENT_MSTEAMS` with the channel you want, in the following entries at the bottom of the same file:
  51. ```conf
  52. role_recipients_msteams[sysadmin]="CHANNEL1"
  53. role_recipients_msteams[domainadmin]="CHANNEL2"
  54. role_recipients_msteams[dba]="databases CHANNEL3"
  55. role_recipients_msteams[webmaster]="CHANNEL4"
  56. role_recipients_msteams[proxyadmin]="CHANNEL5"
  57. role_recipients_msteams[sitemgr]="CHANNEL6"
  58. ```
  59. examples:
  60. folding:
  61. enabled: true
  62. title: ''
  63. list:
  64. - name: 'Basic Configuration'
  65. folding:
  66. enabled: false
  67. description: ''
  68. config: |
  69. #------------------------------------------------------------------------------
  70. # Microsoft Teams (office.com) global notification options
  71. SEND_MSTEAMS="YES"
  72. MSTEAMS_WEBHOOK_URL="https://outlook.office.com/webhook/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX@XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/IncomingWebhook/CHANNEL/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
  73. DEFAULT_RECIPIENT_MSTEAMS="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  74. troubleshooting:
  75. problems:
  76. list: []