![]() |
1 year ago | |
---|---|---|
.. | ||
Makefile.inc | 4 years ago | |
README.md | 1 year ago |
Learn how to send notifications to Dynatrace using Netdata's Agent alert notification feature, which supports dozens of endpoints, user roles, and more.
Note
This file assumes you have read the Introduction to Agent alert notifications, detailing how the Netdata Agent's alert notification method works.
Dynatrace allows you to receive notifications using their Events REST API.
See the Dynatrace documentation about POSTing an event in the Events API for more details.
You will need:
http://
or https://
), for example: https://monitor.example.com
.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
.Info
This file mentions editing configuration files.
- To edit configuration files in a safe way, we provide the
edit config
script located in your Netdata config directory (typically is/etc/netdata
) that creates the proper file and opens it in an editor automatically.
Note that to run the script you need to be inside your Netdata config directory.It is recommended to use this way for configuring Netdata.
Edit health_alarm_notify.conf
:
SEND_DYNATRACE
to YES
.DYNATRACE_SERVER
to the Dynatrace server with the protocol prefix, for example https://monitor.example.com
.DYNATRACE_TOKEN
to your Dynatrace API authentication tokenDYNATRACE_SPACE
to the API Space, it 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
.DYNATRACE_TAG_VALUE
to your Dynatrace Server Tag.DYNATRACE_ANNOTATION_TYPE
can be left to its default value Netdata Alarm
, but you can change it to better fit your needs.DYNATRACE_EVENT
to the Dynatrace eventType
you want, possible values are:AVAILABILITY_EVENT
, CUSTOM_ALERT
, CUSTOM_ANNOTATION
, CUSTOM_CONFIGURATION
, CUSTOM_DEPLOYMENT
, CUSTOM_INFO
, ERROR_EVENT
, MARKED_FOR_TERMINATION
, PERFORMANCE_EVENT
, RESOURCE_CONTENTION_EVENT
. You can read more hereAn example of a working configuration would be:
#------------------------------------------------------------------------------
# Dynatrace global notification options
SEND_DYNATRACE="YES"
DYNATRACE_SERVER="https://monitor.example.com"
DYNATRACE_TOKEN="XXXXXXX"
DYNATRACE_SPACE="2a93fe0e-4cd5-469a-9d0d-1a064235cfce"
DYNATRACE_TAG_VALUE="SERVERTAG"
DYNATRACE_ANNOTATION_TYPE="Netdata Alert"
DYNATRACE_EVENT="AVAILABILITY_EVENT"
To test this alert notification method refer to the "Testing Alert Notifications" section of the Agent alert notifications page.