metadata.yaml 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # yamllint disable rule:line-length
  2. ---
  3. - id: 'notify-dynatrace'
  4. meta:
  5. name: 'Dynatrace'
  6. link: 'https://dynatrace.com'
  7. categories:
  8. - notify.agent
  9. icon_filename: 'dynatrace.svg'
  10. keywords:
  11. - Dynatrace
  12. overview:
  13. notification_description: |
  14. Dynatrace allows you to receive notifications using their Events REST API. See the [Dynatrace documentation](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/events-v2/post-event) about POSTing an event in the Events API for more details.
  15. You can send notifications to Dynatrace using Netdata's Agent alert notification feature, which supports dozens of endpoints, user roles, and more.
  16. notification_limitations: ''
  17. setup:
  18. prerequisites:
  19. list:
  20. - title: ''
  21. description: |
  22. - A Dynatrace Server. You can use the same on all your Netdata servers but make sure the server is network visible from your Netdata hosts. The Dynatrace server should be with protocol prefixed (http:// or https://), for example: https://monitor.example.com.
  23. - An API Token. Generate a secure access API token that enables access to your Dynatrace monitoring data via the REST-based API. See [Dynatrace API - Authentication](https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/basics/dynatrace-api-authentication/) for more details.
  24. - An API Space. This is the URL part of the page you have access in order to generate the API Token. For example, the URL for a generated API token might look like: https://monitor.illumineit.com/e/2a93fe0e-4cd5-469a-9d0d-1a064235cfce/#settings/integration/apikeys;gf=all In that case, the Space is 2a93fe0e-4cd5-469a-9d0d-1a064235cfce.
  25. - A Server Tag. To generate one on your Dynatrace Server, go to Settings --> Tags --> Manually applied tags and create the Tag. The Netdata alarm is sent as a Dynatrace Event to be correlated with all those hosts tagged with this Tag you have created.
  26. - Terminal access to the Agent you wish to configure
  27. configuration:
  28. file:
  29. name: 'health_alarm_notify.conf'
  30. options:
  31. description: 'The following options can be defined for this notification'
  32. folding:
  33. title: 'Config Options'
  34. enabled: true
  35. list:
  36. - name: 'SEND_DYNATRACE'
  37. default_value: 'YES'
  38. description: "Set `SEND_DYNATRACE` to YES"
  39. required: true
  40. - name: 'DYNATRACE_SERVER'
  41. default_value: ''
  42. description: "Set `DYNATRACE_SERVER` to the Dynatrace server with the protocol prefix, for example `https://monitor.example.com`."
  43. required: true
  44. - name: 'DYNATRACE_TOKEN'
  45. default_value: ''
  46. description: "Set `DYNATRACE_TOKEN` to your Dynatrace API authentication token"
  47. required: true
  48. - name: 'DYNATRACE_SPACE'
  49. default_value: ''
  50. description: "Set `DYNATRACE_SPACE` to the API Space, it is the URL part of the page you have access in order to generate the API Token."
  51. required: true
  52. detailed_description: |
  53. For example, the URL for a generated API token might look like: https://monitor.illumineit.com/e/2a93fe0e-4cd5-469a-9d0d-1a064235cfce/#settings/integration/apikeys;gf=all In that case, the Space is 2a93fe0e-4cd5-469a-9d0d-1a064235cfce.
  54. - name: 'DYNATRACE_TAG_VALUE'
  55. default_value: ''
  56. description: "Set `DYNATRACE_TAG_VALUE` to your Dynatrace Server Tag."
  57. required: true
  58. - name: 'DYNATRACE_ANNOTATION_TYPE'
  59. default_value: 'Netdata Alarm'
  60. description: "`DYNATRACE_ANNOTATION_TYPE` can be left to its default value Netdata Alarm, but you can change it to better fit your needs."
  61. required: false
  62. - name: 'DYNATRACE_EVENT'
  63. default_value: 'Netdata Alarm'
  64. description: "Set `DYNATRACE_EVENT` to the Dynatrace eventType you want."
  65. required: false
  66. detailed_description: |
  67. `AVAILABILITY_EVENT`, `CUSTOM_ALERT`, `CUSTOM_ANNOTATION`, `CUSTOM_CONFIGURATION`, `CUSTOM_DEPLOYMENT`, `CUSTOM_INFO`, `ERROR_EVENT`,
  68. `MARKED_FOR_TERMINATION`, `PERFORMANCE_EVENT`, `RESOURCE_CONTENTION_EVENT`.
  69. You can read more [here](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/events-v2/post-event#request-body-objects).
  70. examples:
  71. folding:
  72. enabled: true
  73. title: ''
  74. list:
  75. - name: 'Basic Configuration'
  76. folding:
  77. enabled: false
  78. description: ''
  79. config: |
  80. #------------------------------------------------------------------------------
  81. # Dynatrace global notification options
  82. SEND_DYNATRACE="YES"
  83. DYNATRACE_SERVER="https://monitor.example.com"
  84. DYNATRACE_TOKEN="XXXXXXX"
  85. DYNATRACE_SPACE="2a93fe0e-4cd5-469a-9d0d-1a064235cfce"
  86. DYNATRACE_TAG_VALUE="SERVERTAG"
  87. DYNATRACE_ANNOTATION_TYPE="Netdata Alert"
  88. DYNATRACE_EVENT="AVAILABILITY_EVENT"
  89. troubleshooting:
  90. problems:
  91. list: []