metadata.yaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # yamllint disable rule:line-length
  2. ---
  3. - id: 'notify-telegram'
  4. meta:
  5. name: 'Telegram'
  6. link: 'https://telegram.org/'
  7. categories:
  8. - notify.agent
  9. icon_filename: 'telegram.svg'
  10. keywords:
  11. - Telegram
  12. overview:
  13. notification_description: |
  14. Send notifications to Telegram 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. - A bot token. To get one, contact the [@BotFather](https://t.me/BotFather) bot and send the command `/newbot` and follow the instructions. Invite your bot to a group where you want it to send messages.
  22. - The chat ID for every chat you want to send messages to. Invite [@myidbot](https://t.me/myidbot) bot to the group that will receive notifications, and write the command `/getgroupid@myidbot` to get the group chat ID. Group IDs start with a hyphen, supergroup IDs start with `-100`.
  23. - Terminal access to the Agent you wish to configure.
  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_TELEGRAM'
  34. default_value: 'YES'
  35. description: "Set `SEND_TELEGRAM` to YES"
  36. required: true
  37. - name: 'TELEGRAM_BOT_TOKEN'
  38. default_value: ''
  39. description: "set `TELEGRAM_BOT_TOKEN` to your bot token."
  40. required: true
  41. - name: 'DEFAULT_RECIPIENT_TELEGRAM'
  42. default_value: ''
  43. description: "Set `DEFAULT_RECIPIENT_TELEGRAM` to the chat ID you want the alert notifications to be sent to. You can define multiple chat IDs like this: -49999333322 -1009999222255."
  44. required: true
  45. detailed_description: |
  46. All roles will default to this variable if left unconfigured.
  47. The `DEFAULT_RECIPIENT_CUSTOM` can be edited in the following entries at the bottom of the same file:
  48. ```conf
  49. role_recipients_telegram[sysadmin]="-49999333324"
  50. role_recipients_telegram[domainadmin]="-49999333389"
  51. role_recipients_telegram[dba]="-10099992222"
  52. role_recipients_telegram[webmaster]="-10099992222 -49999333389"
  53. role_recipients_telegram[proxyadmin]="-49999333344"
  54. role_recipients_telegram[sitemgr]="-49999333876"
  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. # telegram (telegram.org) global notification options
  68. SEND_TELEGRAM="YES"
  69. TELEGRAM_BOT_TOKEN="111122223:7OpFlFFRzRBbrUUmIjj5HF9Ox2pYJZy5"
  70. DEFAULT_RECIPIENT_TELEGRAM="-49999333876"
  71. troubleshooting:
  72. problems:
  73. list: []