metadata.yaml 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. # yamllint disable rule:line-length
  2. ---
  3. - id: 'notify-cloud-mobile-app'
  4. meta:
  5. name: 'Netdata Mobile App'
  6. link: 'https://netdata.cloud'
  7. categories:
  8. - notify.cloud
  9. icon_filename: 'netdata.png'
  10. keywords:
  11. - mobile-app
  12. - phone
  13. - personal-notifications
  14. overview:
  15. notification_description: "From the Netdata Cloud UI, you can manage your user notification settings and enable the configuration to deliver notifications on the Netdata Mobile Application."
  16. notification_limitations: ''
  17. setup:
  18. description: |
  19. ### Prerequisites
  20. - A Netdata Cloud account
  21. - You need to have the Netdata Mobile Application installed on your [Android](https://play.google.com/store/apps/details?id=cloud.netdata.android&pli=1) or [iOS](https://apps.apple.com/in/app/netdata-mobile/id6474659622) phone.
  22. ### Netdata Mobile App Configuration
  23. Steps to login to the Netdata Mobile Application to receive alert and reachability and alert notifications:
  24. 1. Download the Netdata Mobile Application from [Google Play Store](https://play.google.com/store/apps/details?id=cloud.netdata.android&pli=1) or the [iOS App Store](https://apps.apple.com/in/app/netdata-mobile/id6474659622)
  25. 2. Open the App and Choose the Sign In Option
  26. - Sign In with Email Address: Enter the Email Address of your registered Netdata Cloud Account and Click on the Verification link received by Email on your mobile device.
  27. - Sign In with QR Code: Scan the QR Code from your `Netdata Cloud` UI under **User Settings** --> **Notifications** --> **Mobile App Notifications** --> **Show QR Code**
  28. 3. Start receiving alert and reachability notifications for your **Space(s)** on a **Paid Subscription plan**
  29. ### Netdata Configuration Steps
  30. 1. Click on the **User settings** on the bottom left of your screen (your profile icon)
  31. 2. Click on the **Notifications** tab
  32. 3. Enable **Mobile App Notifications** if disabled (Enabled by default)
  33. 4. Use the **Show QR Code** Option to login to your mobile device by scanning the **QR Code**
  34. - id: 'notify-cloud-discord'
  35. meta:
  36. name: 'Discord'
  37. link: 'https://discord.com/'
  38. categories:
  39. - notify.cloud
  40. icon_filename: 'discord.png'
  41. keywords:
  42. - discord
  43. - community
  44. overview:
  45. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications on Discord."
  46. notification_limitations: ''
  47. setup:
  48. description: |
  49. ### Prerequisites
  50. - A Netdata Cloud account
  51. - Access to the Netdata Space as an **Admin**
  52. - You need to have a Discord server able to receive webhooks integrations.
  53. ### Discord Server Configuration
  54. Steps to configure your Discord server to receive [webhook notifications](https://support.discord.com/hc/en-us/articles/228383668) from Netdata:
  55. 1. Go to `Server Settings` --> `Integrations`
  56. 2. **Create Webhook** or **View Webhooks** if you already have some defined
  57. 3. Specify the **Name** and **Channel** on your new webhook
  58. 4. Use Webhook URL to add your notification configuration on Netdata UI
  59. ### Netdata Configuration Steps
  60. 1. Click on the **Space settings** cog (located above your profile icon)
  61. 2. Click on the **Notification** tab
  62. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  63. 4. On the **Discord** card click on **+ Add**
  64. 5. A modal will be presented to you to enter the required details to enable the configuration:
  65. * **Notification settings** are Netdata specific settings
  66. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  67. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  68. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  69. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Discord:
  70. - Define the type channel you want to send notifications to: **Text channel** or **Forum channel**
  71. - Webhook URL - URL provided on Discord for the channel you want to receive your notifications.
  72. - Thread name - if the Discord channel is a **Forum channel** you will need to provide the thread name as well
  73. - id: 'notify-cloud-pagerduty'
  74. meta:
  75. name: 'PagerDuty'
  76. link: 'https://www.pagerduty.com/'
  77. categories:
  78. - notify.cloud
  79. icon_filename: 'pagerduty.png'
  80. keywords:
  81. - pagerduty
  82. overview:
  83. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications on PagerDuty."
  84. notification_limitations: ''
  85. setup:
  86. description: |
  87. ### Prerequisites
  88. - A Netdata Cloud account
  89. - Access to the Netdata Space as an **Admin**
  90. - The Netdata Space needs to be on a paid plan
  91. - You need to have a PagerDuty service to receive events using webhooks.
  92. ### PagerDuty Server Configuration
  93. Steps to configure your PagerDuty to receive notifications from Netdata:
  94. 1. Create a service to receive events from your services directory page on PagerDuty
  95. 2. At step 3, select `Events API V2` Integration or **View Webhooks** if you already have some defined
  96. 3. Once the service is created, you will be redirected to its configuration page, where you can copy the **Integration Key** and **Integration URL (Alert Events)** fields to add them to your notification configuration in the Netdata UI.
  97. ### Netdata Configuration Steps
  98. 1. Click on the **Space settings** cog (located above your profile icon)
  99. 2. Click on the **Notification** tab
  100. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  101. 4. On the **PagerDuty** card click on **+ Add**
  102. 5. A modal will be presented to you to enter the required details to enable the configuration:
  103. * **Notification settings** are Netdata specific settings
  104. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  105. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  106. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  107. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For PagerDuty:
  108. - Integration Key - is a 32 character key provided by PagerDuty to receive events on your service.
  109. - Integration URL (Alert Events) - is the URL provided by PagerDuty where we will send notifications.
  110. - id: 'notify-cloud-slack'
  111. meta:
  112. name: 'Slack'
  113. link: 'https://slack.com/'
  114. categories:
  115. - notify.cloud
  116. icon_filename: 'slack.png'
  117. keywords:
  118. - slack
  119. overview:
  120. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications on Slack."
  121. notification_limitations: ''
  122. setup:
  123. description: |
  124. ### Prerequisites
  125. - A Netdata Cloud account
  126. - Access to the Netdata Space as an **Admin**
  127. - The Netdata Space needs to be on a paid plan
  128. - You need to have a Slack app on your workspace to receive the Webhooks.
  129. ### Slack Server Configuration
  130. Steps to configure your Slack to receive notifications from Netdata:
  131. 1. Create an app to receive webhook integrations. Check [Create an app](https://api.slack.com/apps?new_app=1) from Slack documentation for further details
  132. 2. Install the app on your workspace
  133. 3. Configure Webhook URLs for your workspace
  134. - On your app go to **Incoming Webhooks** and click on **activate incoming webhooks**
  135. - At the bottom of **Webhook URLs for Your Workspace** section you have **Add New Webhook to Workspace**
  136. - After pressing that specify the channel where you want your notifications to be delivered
  137. - Once completed copy the Webhook URL that you will need to add to your notification configuration on Netdata UI
  138. For more details please check Slacks's article [Incoming webhooks for Slack](https://slack.com/help/articles/115005265063-Incoming-webhooks-for-Slack).
  139. ### Netdata Configuration Steps
  140. 1. Click on the **Space settings** cog (located above your profile icon)
  141. 2. Click on the **Notification** tab
  142. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  143. 4. On the **Slack** card click on **+ Add**
  144. 5. A modal will be presented to you to enter the required details to enable the configuration:
  145. * **Notification settings** are Netdata specific settings
  146. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  147. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  148. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  149. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Slack:
  150. - Webhook URL - URL provided on Slack for the channel you want to receive your notifications.
  151. - id: 'notify-cloud-opsgenie'
  152. meta:
  153. name: 'Opsgenie'
  154. link: 'https://www.atlassian.com/software/opsgenie'
  155. categories:
  156. - notify.cloud
  157. icon_filename: 'opsgenie.png'
  158. keywords:
  159. - opsgenie
  160. - atlassian
  161. overview:
  162. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications on Opsgenie."
  163. notification_limitations: ''
  164. setup:
  165. description: |
  166. ### Prerequisites
  167. - A Netdata Cloud account
  168. - Access to the Netdata Space as an **Admin**
  169. - The Netdata Space needs to be on a paid plan
  170. - You need to have permissions on Opsgenie to add new integrations.
  171. ### Opsgenie Server Configuration
  172. Steps to configure your Opsgenie to receive notifications from Netdata:
  173. 1. Go to integrations tab of your team, click **Add integration**
  174. 2. Pick **API** from available integrations. Copy your API Key and press **Save Integration**.
  175. 3. Paste copied API key into the corresponding field in **Integration configuration** section of Opsgenie modal window in Netdata.
  176. ### Netdata Configuration Steps
  177. 1. Click on the **Space settings** cog (located above your profile icon)
  178. 2. Click on the **Notification** tab
  179. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  180. 4. On the **Opsgenie** card click on **+ Add**
  181. 5. A modal will be presented to you to enter the required details to enable the configuration:
  182. * **Notification settings** are Netdata specific settings
  183. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  184. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  185. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  186. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Opsgenie:
  187. - API Key - a key provided on Opsgenie for the channel you want to receive your notifications.
  188. - id: 'notify-cloud-mattermost'
  189. meta:
  190. name: 'Mattermost'
  191. link: 'https://mattermost.com/'
  192. categories:
  193. - notify.cloud
  194. icon_filename: 'mattermost.png'
  195. keywords:
  196. - mattermost
  197. overview:
  198. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications on Mattermost."
  199. notification_limitations: ''
  200. setup:
  201. description: |
  202. ### Prerequisites
  203. - A Netdata Cloud account
  204. - Access to the Netdata Space as an **Admin**
  205. - The Netdata Space needs to be on a paid plan
  206. - You need to have permissions on Mattermost to add new integrations.
  207. - You need to have a Mattermost app on your workspace to receive the webhooks.
  208. ### Mattermost Server Configuration
  209. Steps to configure your Mattermost to receive notifications from Netdata:
  210. 1. In Mattermost, go to Product menu > Integrations > Incoming Webhook
  211. - If you don’t have the Integrations option, incoming webhooks may not be enabled on your Mattermost server or may be disabled for non-admins. They can be enabled by a System Admin from System Console > Integrations > Integration Management. Once incoming webhooks are enabled, continue with the steps below.
  212. 2. Select Add Incoming Webhook and add a name and description for the webhook. The description can be up to 500 characters
  213. 3. Select the channel to receive webhook payloads, then select Add to create the webhook
  214. 4. You will end up with a webhook endpoint that looks like below:
  215. `https://your-mattermost-server.com/hooks/xxx-generatedkey-xxx`
  216. - Treat this endpoint as a secret. Anyone who has it will be able to post messages to your Mattermost instance.
  217. For more details please check Mattermost's article [Incoming webhooks for Mattermost](https://developers.mattermost.com/integrate/webhooks/incoming/).
  218. ### Netdata Configuration Steps
  219. 1. Click on the **Space settings** cog (located above your profile icon)
  220. 2. Click on the **Notification** tab
  221. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  222. 4. On the **Mattermost** card click on **+ Add**
  223. 5. A modal will be presented to you to enter the required details to enable the configuration:
  224. * **Notification settings** are Netdata specific settings
  225. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  226. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  227. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  228. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Mattermost:
  229. - Webhook URL - URL provided on Mattermost for the channel you want to receive your notifications
  230. - id: 'notify-cloud-rocketchat'
  231. meta:
  232. name: 'RocketChat'
  233. link: 'https://www.rocket.chat/'
  234. categories:
  235. - notify.cloud
  236. icon_filename: 'rocketchat.png'
  237. keywords:
  238. - rocketchat
  239. overview:
  240. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications on RocketChat."
  241. notification_limitations: ''
  242. setup:
  243. description: |
  244. ### Prerequisites
  245. - A Netdata Cloud account
  246. - Access to the Netdata Space as an **Admin**
  247. - The Netdata Space needs to be on a paid plan
  248. - You need to have permissions on Mattermost to add new integrations.
  249. - You need to have a RocketChat app on your workspace to receive the webhooks.
  250. ### Mattermost Server Configuration
  251. Steps to configure your RocketChat to receive notifications from Netdata:
  252. 1. In RocketChat, Navigate to Administration > Workspace > Integrations.
  253. 2. Click **+New** at the top right corner.
  254. 3. For more details about each parameter, check [create-a-new-incoming-webhook](https://docs.rocket.chat/use-rocket.chat/workspace-administration/integrations#create-a-new-incoming-webhook).
  255. 4. After configuring integration, click Save.
  256. 5. You will end up with a webhook endpoint that looks like below:
  257. `https://your-server.rocket.chat/hooks/YYYYYYYYYYYYYYYYYYYYYYYY/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`
  258. - Treat this endpoint as a secret. Anyone who has it will be able to post messages to your RocketChat instance.
  259. For more details please check RocketChat's article Incoming webhooks for [RocketChat](https://docs.rocket.chat/use-rocket.chat/workspace-administration/integrations/).
  260. ### Netdata Configuration Steps
  261. 1. Click on the **Space settings** cog (located above your profile icon)
  262. 2. Click on the **Notification** tab
  263. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  264. 4. On the **RocketChat** card click on **+ Add**
  265. 5. A modal will be presented to you to enter the required details to enable the configuration:
  266. * **Notification settings** are Netdata specific settings
  267. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  268. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  269. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  270. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For RocketChat:
  271. - Webhook URL - URL provided on RocketChat for the channel you want to receive your notifications.
  272. - id: 'notify-cloud-awssns'
  273. meta:
  274. name: 'Amazon SNS'
  275. link: 'https://aws.amazon.com/sns/'
  276. categories:
  277. - notify.cloud
  278. icon_filename: 'awssns.png'
  279. keywords:
  280. - awssns
  281. overview:
  282. notification_description: "From the Cloud interface, you can manage your space's notification settings and from these you can add a specific configuration to get notifications delivered on AWS SNS."
  283. notification_limitations: ''
  284. setup:
  285. description: |
  286. ### Prerequisites
  287. To add AWS SNS notification you need:
  288. - A Netdata Cloud account
  289. - Access to the space as an **Admin**
  290. - The Space needs to be on a paid plan
  291. - Have an AWS account with AWS SNS access, for more details check [how to configure this on AWS SNS](#settings-on-aws-sns)
  292. ### Steps
  293. 1. Click on the **Space settings** cog (located above your profile icon)
  294. 2. Click on the **Notification** tab
  295. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  296. 4. On the **AwsSns** card click on **+ Add**
  297. 5. A modal will be presented to you to enter the required details to enable the configuration:
  298. * **Notification settings** are Netdata specific settings
  299. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  300. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  301. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  302. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For AWS SNS:
  303. - Topic ARN - topic provided on AWS SNS (with region) for where to publish your notifications. For more details check [how to configure this on AWS SNS](#settings-on-aws-sns)
  304. ### Settings on AWS SNS
  305. To enable the webhook integration on AWS SNS you need:
  306. 1. [Setting up access for Amazon SNS](https://docs.aws.amazon.com/sns/latest/dg/sns-setting-up.html)
  307. 2. Create a topic
  308. - On AWS SNS management console click on **Create topic**
  309. - On the **Details** section, the standard type and provide the topic name
  310. - On the **Access policy** section, change the **Publishers** option to **Only the specified AWS accounts** and provide the Netdata AWS account **(123269920060)** that will be used to publish notifications to the topic being created
  311. - Finally, click on **Create topic** on the bottom of the page
  312. 3. Now, use the new **Topic ARN** while adding AWS SNS integration on your space.
  313. - id: 'notify-cloud-microsoftteams'
  314. meta:
  315. name: 'Microsoft Teams'
  316. link: 'https://www.microsoft.com/en-us/microsoft-teams'
  317. categories:
  318. - notify.cloud
  319. icon_filename: 'teams.svg'
  320. keywords:
  321. - microsoft
  322. - teams
  323. overview:
  324. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications to a Microsoft Teams channel."
  325. notification_limitations: ''
  326. setup:
  327. description: |
  328. ### Prerequisites
  329. To add Microsoft Teams notifications integration to your Netdata Cloud space you will need the following:
  330. - A Netdata Cloud account.
  331. - Access to the Netdata Cloud space as an **Admin**.
  332. - The Space to be on a paid plan.
  333. - A [Microsoft Teams Essentials subscription](https://www.microsoft.com/en-sg/microsoft-teams/essentials) or higher. Note that this is a **paid** feature.
  334. ### Settings on Microsoft Teams
  335. 1. **Access the Channel Settings**: Navigate to the desired Microsoft Teams channel and hover over the channel name. Click the three dots (ellipsis) icon that appears.
  336. 2. **Create a New Workflow**: Select "Workflows" from the options, then choose "Post to a channel when a webhook request is received."
  337. 3. **Configure Workflow Details**:
  338. - Give your workflow a descriptive name, such as "Netdata Alerts."
  339. - Select the target team and channel to receive notifications.
  340. - Click "Add workflow."
  341. 4. **Obtain the Webhook URL**:
  342. - Once the workflow is created, you will receive a unique Workflow Webhook URL.
  343. - Copy this URL, as it will be required to configure Netdata Cloud.
  344. ### Settings on Netdata Cloud
  345. 1. Click on the **Space settings** cog (located above your profile icon).
  346. 2. Click on the **Notification** tab.
  347. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen).
  348. 4. On the **Microsoft Teams** card click on **+ Add**.
  349. 5. A modal will be presented to you to enter the required details to enable the configuration:
  350. * **Notification settings** are Netdata specific settings:
  351. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it.
  352. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration.
  353. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only.
  354. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Microsoft Teams:
  355. - Microsoft Teams Incoming Webhook URL - the _Incoming Webhook URL_ that was generated earlier.
  356. - id: 'notify-cloud-telegram'
  357. meta:
  358. name: 'Telegram'
  359. link: 'https://telegram.org/'
  360. categories:
  361. - notify.cloud
  362. icon_filename: 'telegram.svg'
  363. keywords:
  364. - Telegram
  365. overview:
  366. notification_description: "From the Cloud interface, you can manage your space's notification settings and from these you can add a specific configuration to get notifications delivered on Telegram."
  367. notification_limitations: ''
  368. setup:
  369. description: |
  370. ### Prerequisites
  371. To add Telegram notification you need:
  372. - A Netdata Cloud account
  373. - Access to the space as an **Admin**
  374. - The Space needs to be on a paid plan
  375. - The Telegram bot token, chat ID and _optionally_ the topic ID
  376. ### Steps
  377. 1. Click on the **Space settings** cog (located above your profile icon)
  378. 2. Click on the **Notification** tab
  379. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  380. 4. On the **Telegram** card click on **+ Add**
  381. 5. A modal will be presented to you to enter the required details to enable the configuration:
  382. - **Notification settings** are Netdata specific settings
  383. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  384. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  385. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  386. - **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Telegram:
  387. - Bot Token - the token of your bot
  388. - Chat ID - the chat id where your bot will deliver messages to
  389. - Topic ID - the identifier of the chat topic to which your bot will send messages. If omitted or 0, messages will be sent to the General topic. If topics are not supported, messages will be sent to the chat.
  390. ### Getting the Telegram bot token, chat ID and topic ID
  391. - Bot token: To create one bot, contact the [@BotFather](https://t.me/BotFather) bot and send the command `/newbot` and follow the instructions. **Start a conversation with your bot or invite it into the group where you want it to send notifications**.
  392. - To get the chat ID you have two options:
  393. - Contact the [@myidbot](https://t.me/myidbot) bot and send the `/getid` command to get your personal chat ID, or invite it into a group and use the `/getgroupid` command to get the group chat ID.
  394. - Alternatively, you can get the chat ID directly from the bot API. Send your bot a command in the chat you want to use, then check `https://api.telegram.org/bot{YourBotToken}/getUpdates`, eg. `https://api.telegram.org/bot111122223:7OpFlFFRzRBbrUUmIjj5HF9Ox2pYJZy5/getUpdates`
  395. - To get the topic ID, the easiest way is this: Post a message to that topic, then right-click on it and select `Copy Message Link`. Paste it on a scratchpad and notice that it has the following structure `https://t.me/c/XXXXXXXXXX/YY/ZZ`. The topic ID is `YY` (integer).
  396. - id: 'notify-cloud-splunk'
  397. meta:
  398. name: 'Splunk'
  399. link: 'https://splunk.com/'
  400. categories:
  401. - notify.cloud
  402. icon_filename: 'splunk-black.svg'
  403. keywords:
  404. - Splunk
  405. overview:
  406. notification_description: "From the Cloud interface, you can manage your space's notification settings and from these you can add a specific configuration to get notifications delivered on Splunk."
  407. notification_limitations: ''
  408. setup:
  409. description: |
  410. ### Prerequisites
  411. To add Splunk notification you need:
  412. - A Netdata Cloud account
  413. - Access to the space as an **Admin**
  414. - The Space needs to be on a paid plan
  415. - URI and token for your Splunk HTTP Event Collector. Refer to the [Splunk documentation](https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector) for detailed instructions.
  416. ### Steps
  417. 1. Click on the **Space settings** cog (located above your profile icon)
  418. 2. Click on the **Notification** tab
  419. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  420. 4. On the **Splunk** card click on **+ Add**
  421. 5. A modal will be presented to you to enter the required details to enable the configuration:
  422. - **Notification settings** are Netdata specific settings
  423. - Configuration name - provide a descriptive name for your configuration to easily identify it.
  424. - Rooms - select the nodes or areas of your infrastructure you want to receive notifications about.
  425. - Notification - choose the type of notifications you want to receive: All Alerts and unreachable, All Alerts, Critical only.
  426. - **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Splunk:
  427. - HTTP Event Collector URI - The URI of your HTTP event collector in Splunk
  428. - HTTP Event Collector Token - the token that Splunk provided to you when you created the HTTP Event Collector
  429. - id: 'notify-cloud-victorops'
  430. meta:
  431. name: 'Splunk VictorOps'
  432. link: 'https://www.splunk.com/en_us/about-splunk/acquisitions/splunk-on-call.html'
  433. categories:
  434. - notify.cloud
  435. icon_filename: 'victorops.svg'
  436. keywords:
  437. - VictorOps
  438. - Splunk
  439. - On-Call
  440. overview:
  441. notification_description: "From the Cloud interface, you can manage your space's notification settings and from there you can add a specific configuration to get notifications delivered on Splunk On-Call/VictorOps."
  442. notification_limitations: ''
  443. setup:
  444. description: |
  445. ### Prerequisites
  446. To add Splunk VictorOps notification (also known as Splunk On-Call) you need:
  447. - A Netdata Cloud account
  448. - Access to the space as an **Admin**
  449. - The Space needs to be on a paid plan
  450. - Destination URL for your Splunk VictorOps REST Endpoint Integration. Refer to the [VictorOps documentation](https://help.victorops.com/knowledge-base/rest-endpoint-integration-guide) for detailed instructions.
  451. ### Steps
  452. 1. Click on the **Space settings** cog (located above your profile icon)
  453. 2. Click on the **Notification** tab
  454. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  455. 4. On the **Splunk VictorOps** card click on **+ Add**
  456. 5. A modal will be presented to you to enter the required details to enable the configuration:
  457. - **Notification settings** are Netdata specific settings
  458. - Configuration name - provide a descriptive name for your configuration to easily identify it.
  459. - Rooms - select the nodes or areas of your infrastructure you want to receive notifications about.
  460. - Notification - choose the type of notifications you want to receive: All Alerts and unreachable, All Alerts, Critical only.
  461. - **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Splunk VictorOps:
  462. - Destination URL - The URL provided by VictorOps of your REST endpoint.
  463. - id: 'notify-cloud-webhook'
  464. meta:
  465. name: 'Webhook'
  466. link: 'https://en.wikipedia.org/wiki/Webhook'
  467. categories:
  468. - notify.cloud
  469. icon_filename: 'webhook.svg'
  470. keywords:
  471. - generic webhooks
  472. - webhooks
  473. overview:
  474. notification_description: "From the Netdata Cloud UI, you can manage your space's notification settings and enable the configuration to deliver notifications on a webhook using a predefined schema."
  475. notification_limitations: ''
  476. setup:
  477. description: |
  478. ### Prerequisites
  479. - A Netdata Cloud account
  480. - Access to the Netdata Space as an **Admin**
  481. - The Netdata Space needs to be on a paid plan
  482. - You need to have an app that allows you to receive webhooks following a predefined schema.
  483. ### Netdata Configuration Steps
  484. 1. Click on the **Space settings** cog (located above your profile icon)
  485. 2. Click on the **Notification** tab
  486. 3. Click on the **+ Add configuration** button (near the top-right corner of your screen)
  487. 4. On the **Webhook** card click on **+ Add**
  488. 5. A modal will be presented to you to enter the required details to enable the configuration:
  489. * **Notification settings** are Netdata specific settings
  490. - Configuration name - you can optionally provide a name for your configuration you can easily refer to it
  491. - Rooms - by specifying a list of Rooms you are select to which nodes or areas of your infrastructure you want to be notified using this configuration
  492. - Notification - you specify which notifications you want to be notified using this configuration: All Alerts and unreachable, All Alerts, Critical only
  493. * **Integration configuration** are the specific notification integration required settings, which vary by notification method. For Webhook:
  494. - Webhook URL - webhook URL is the url of the service that Netdata will send notifications to. In order to keep the communication secured, we only accept HTTPS urls.
  495. - Extra headers - these are optional key-value pairs that you can set to be included in the HTTP requests sent to the webhook URL.
  496. - Authentication Mechanism - Netdata webhook integration supports 3 different authentication mechanisms.
  497. * Mutual TLS (recommended) - default authentication mechanism used if no other method is selected.
  498. * Basic - the client sends a request with an Authorization header that includes a base64-encoded string in the format **username:password**. These will settings will be required inputs.
  499. * Bearer - the client sends a request with an Authorization header that includes a **bearer token**. This setting will be a required input.
  500. ### Webhook service
  501. A webhook integration allows your application to receive real-time alerts from Netdata by sending HTTP requests to a specified URL. In this document, we'll go over the steps to set up a generic webhook integration, including adding headers, and implementing different types of authorization mechanisms.
  502. #### Netdata webhook integration
  503. A webhook integration is a way for one service to notify another service about events that occur within it. This is done by sending an HTTP POST request to a specified URL (known as the "webhook URL") when an event occurs.
  504. Netdata webhook integration service will send alert and reachability notifications to the destination service as soon as they are detected.
  505. For alert notifications, the content sent to the destination service contains a JSON object with the following properties:
  506. | field | type | description |
  507. | :-- | :-- | :-- |
  508. | message | string | A summary message of the alert. |
  509. | alarm | string | The alarm the notification is about. |
  510. | info | string | Additional info related with the alert. |
  511. | chart | string | The chart associated with the alert. |
  512. | context | string | The chart context. |
  513. | space | string | The space where the node that raised the alert is assigned. |
  514. | Rooms | object[object(string,string)] | Object with list of Rooms names and urls where the node belongs to. |
  515. | family | string | Context family. |
  516. | class | string | Classification of the alert, e.g. "Error". |
  517. | severity | string | Alert severity, can be one of "warning", "critical" or "clear". |
  518. | date | string | Date of the alert in ISO8601 format. |
  519. | duration | string | Duration the alert has been raised. |
  520. | additional_active_critical_alerts | integer | Number of additional critical alerts currently existing on the same node. |
  521. | additional_active_warning_alerts | integer | Number of additional warning alerts currently existing on the same node. |
  522. | alarm_url | string | Netdata Cloud URL for this alarm. |
  523. For reachability notifications, the JSON object will contain the following properties:
  524. | field | type | description |
  525. | :-- | :-- | :-- |
  526. | message | string | A summary message of the reachability alert. |
  527. | url | string | Netdata Cloud URL for the host experiencing the reachability alert. |
  528. | host | string | the host experiencing the reachability alert. |
  529. | severity | string | severity for this notification. If host is reachable, severity will be 'info', if host is unreachable, it will be 'critical'. |
  530. | status | object | an object with the status information. |
  531. | status.reachable | boolean | true if host is reachable, false otherwise |
  532. | status.text | string | can be 'reachable' or 'unreachable' |
  533. #### Extra headers
  534. When setting up a webhook integration, the user can specify a set of headers to be included in the HTTP requests sent to the webhook URL.
  535. By default, the following headers will be sent in the HTTP request
  536. | **Header** | **Value** |
  537. |:-------------------------------:|-----------------------------|
  538. | Content-Type | application/json |
  539. #### Authentication mechanisms
  540. Netdata webhook integration supports 3 different authentication mechanisms:
  541. ##### Mutual TLS authentication (recommended)
  542. In mutual Transport Layer Security (mTLS) authentication, the client and the server authenticate each other using X.509 certificates. This ensures that the client is connecting to the intended server, and that the server is only accepting connections from authorized clients.
  543. This is the default authentication mechanism used if no other method is selected.
  544. To take advantage of mutual TLS, you can configure your server to verify Netdata's client certificate. In order to achieve this, the Netdata client sending the notification supports mutual TLS (mTLS) to identify itself with a client certificate that your server can validate.
  545. The steps to perform this validation are as follows:
  546. - Store Netdata CA certificate on a file in your disk. The content of this file should be:
  547. <details>
  548. <summary>Netdata CA certificate</summary>
  549. ```
  550. -----BEGIN CERTIFICATE-----
  551. MIIF0jCCA7qgAwIBAgIUDV0rS5jXsyNX33evHEQOwn9fPo0wDQYJKoZIhvcNAQEN
  552. BQAwgYAxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQH
  553. Ew1TYW4gRnJhbmNpc2NvMRYwFAYDVQQKEw1OZXRkYXRhLCBJbmMuMRIwEAYDVQQL
  554. EwlDbG91ZCBTUkUxGDAWBgNVBAMTD05ldGRhdGEgUm9vdCBDQTAeFw0yMzAyMjIx
  555. MjQzMDBaFw0zMzAyMTkxMjQzMDBaMIGAMQswCQYDVQQGEwJVUzETMBEGA1UECBMK
  556. Q2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEWMBQGA1UEChMNTmV0
  557. ZGF0YSwgSW5jLjESMBAGA1UECxMJQ2xvdWQgU1JFMRgwFgYDVQQDEw9OZXRkYXRh
  558. IFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCwIg7z3R++
  559. ppQYYVVoMIDlhWO3qVTMsAQoJYEvVa6fqaImUBLW/k19LUaXgUJPohB7gBp1pkjs
  560. QfY5dBo8iFr7MDHtyiAFjcQV181sITTMBEJwp77R4slOXCvrreizhTt1gvf4S1zL
  561. qeHBYWEgH0RLrOAqD0jkOHwewVouO0k3Wf2lEbCq3qRk2HeDvkv0LR7sFC+dDms8
  562. fDHqb/htqhk+FAJELGRqLeaFq1Z5Eq1/9dk4SIeHgK5pdYqsjpBzOTmocgriw6he
  563. s7F3dOec1ZZdcBEAxOjbYt4e58JwuR81cWAVMmyot5JNCzYVL9e5Vc5n22qt2dmc
  564. Tzw2rLOPt9pT5bzbmyhcDuNg2Qj/5DySAQ+VQysx91BJRXyUimqE7DwQyLhpQU72
  565. jw29lf2RHdCPNmk8J1TNropmpz/aI7rkperPugdOmxzP55i48ECbvDF4Wtazi+l+
  566. 4kx7ieeLfEQgixy4lRUUkrgJlIDOGbw+d2Ag6LtOgwBiBYnDgYpvLucnx5cFupPY
  567. Cy3VlJ4EKUeQQSsz5kVmvotk9MED4sLx1As8V4e5ViwI5dCsRfKny7BeJ6XNPLnw
  568. PtMh1hbiqCcDmB1urCqXcMle4sRhKccReYOwkLjLLZ80A+MuJuIEAUUuEPCwywzU
  569. R7pagYsmvNgmwIIuJtB6mIJBShC7TpJG+wIDAQABo0IwQDAOBgNVHQ8BAf8EBAMC
  570. AQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU9IbvOsPSUrpr8H2zSafYVQ9e
  571. Ft8wDQYJKoZIhvcNAQENBQADggIBABQ08aI31VKZs8jzg+y/QM5cvzXlVhcpkZsY
  572. 1VVBr0roSBw9Pld9SERrEHto8PVXbadRxeEs4sKivJBKubWAooQ6NTvEB9MHuGnZ
  573. VCU+N035Gq/mhBZgtIs/Zz33jTB2ju3G4Gm9VTZbVqd0OUxFs41Iqvi0HStC3/Io
  574. rKi7crubmp5f2cNW1HrS++ScbTM+VaKVgQ2Tg5jOjou8wtA+204iYXlFpw9Q0qnP
  575. qq6ix7TfLLeRVp6mauwPsAJUgHZluz7yuv3r7TBdukU4ZKUmfAGIPSebtB3EzXfH
  576. 7Y326xzv0hEpjvDHLy6+yFfTdBSrKPsMHgc9bsf88dnypNYL8TUiEHlcTgCGU8ts
  577. ud8sWN2M5FEWbHPNYRVfH3xgY2iOYZzn0i+PVyGryOPuzkRHTxDLPIGEWE5susM4
  578. X4bnNJyKH1AMkBCErR34CLXtAe2ngJlV/V3D4I8CQFJdQkn9tuznohUU/j80xvPH
  579. FOcDGQYmh4m2aIJtlNVP6+/92Siugb5y7HfslyRK94+bZBg2D86TcCJWaaZOFUrR
  580. Y3WniYXsqM5/JI4OOzu7dpjtkJUYvwtg7Qb5jmm8Ilf5rQZJhuvsygzX6+WM079y
  581. nsjoQAm6OwpTN5362vE9SYu1twz7KdzBlUkDhePEOgQkWfLHBJWwB+PvB1j/cUA3
  582. 5zrbwvQf
  583. -----END CERTIFICATE-----
  584. ```
  585. </details>
  586. - Enable client certificate validation on the web server that is doing the TLS termination. Below we show you how to perform this configuration in `NGINX` and `Apache`
  587. **NGINX**
  588. ```bash
  589. server {
  590. listen 443 ssl default_server;
  591. # ... existing SSL configuration for server authentication ...
  592. ssl_verify_client on;
  593. ssl_client_certificate /path/to/Netdata_CA.pem;
  594. location / {
  595. if ($ssl_client_s_dn !~ "CN=app.netdata.cloud") {
  596. return 403;
  597. }
  598. # ... existing location configuration ...
  599. }
  600. }
  601. ```
  602. **Apache**
  603. ```bash
  604. Listen 443
  605. <VirtualHost *:443>
  606. # ... existing SSL configuration for server authentication ...
  607. SSLVerifyClient require
  608. SSLCACertificateFile "/path/to/Netdata_CA.pem"
  609. </VirtualHost>
  610. <Directory /var/www/>
  611. Require expr "%{SSL_CLIENT_S_DN_CN} == 'app.netdata.cloud'"
  612. # ... existing directory configuration ...
  613. </Directory>
  614. ```
  615. ##### Basic authentication
  616. In basic authorization, the client sends a request with an Authorization header that includes a base64-encoded string in the format username:password. The server then uses this information to authenticate the client. If this authentication method is selected, the user can set the user and password that will be used when connecting to the destination service.
  617. ##### Bearer token authentication
  618. In bearer token authentication, the client sends a request with an Authorization header that includes a bearer token. The server then uses this token to authenticate the client. Bearer tokens are typically generated by an authentication service, and are passed to the client after a successful authentication. If this method is selected, the user can set the token to be used for connecting to the destination service.
  619. ##### Challenge secret
  620. To validate that you have ownership of the web application that will receive the webhook events, we are using a challenge response check mechanism.
  621. This mechanism works as follows:
  622. - The challenge secret parameter that you provide is a shared secret between you and Netdata only.
  623. - On your request for creating a new Webhook integration, we will make a GET request to the url of the webhook, adding a query parameter `crc_token`, consisting of a random string.
  624. - You will receive this request on your application and it must construct an encrypted response, consisting of a base64-encoded HMAC SHA-256 hash created from the crc_token and the shared secret. The response will be in the format:
  625. ```json
  626. {
  627. "response_token": "sha256=9GKoHJYmcHIkhD+C182QWN79YBd+D+Vkj4snmZrfNi4="
  628. }
  629. ```
  630. - We will compare your application's response with the hash that we will generate using the challenge secret, and if they are the same, the integration creation will succeed.
  631. We will do this validation everytime you update your integration configuration.
  632. - Response requirements:
  633. - A base64 encoded HMAC SHA-256 hash created from the crc_token and the shared secret.
  634. - Valid response_token and JSON format.
  635. - Latency less than 5 seconds.
  636. - 200 HTTP response code.
  637. **Example response token generation in Python:**
  638. Here you can see how to define a handler for a Flask application in python 3:
  639. ```python
  640. import base64
  641. import hashlib
  642. import hmac
  643. import json
  644. key ='YOUR_CHALLENGE_SECRET'
  645. @app.route('/webhooks/netdata')
  646. def webhook_challenge():
  647. token = request.args.get('crc_token').encode('ascii')
  648. # creates HMAC SHA-256 hash from incomming token and your consumer secret
  649. sha256_hash_digest = hmac.new(key.encode(),
  650. msg=token,
  651. digestmod=hashlib.sha256).digest()
  652. # construct response data with base64 encoded hash
  653. response = {
  654. 'response_token': 'sha256=' + base64.b64encode(sha256_hash_digest).decode('ascii')
  655. }
  656. # returns properly formatted json response
  657. return json.dumps(response)
  658. ```