This extension works only with a dedicated SaaS controller or an on-prem controller.
The Slack alerting extension enables AppDynamics to post custom notifications as messages to Slack channels. Users can see a brief description of the health rule violation or event and get more detail on AppDynamics by following the URL provided in the alert message. This extension utilizes Slack Incoming Webhooks to post messages into slack.
Download and Unzip the slack-alert.zip file into
Check if you have custom.xml file in
<CONTROLLER_HOME_DIR>/custom/actions/ directory. If yes, add the following xml to the element.
<action> <type>slack-alert</type> <!-- For Linux/Unix *.sh --> <executable>slack-alert.sh</executable> <!-- For windows *.bat --> <!--<executable>slack-alert.bat</executable>--> </action>
If you don't have custom.xml already, create one with the below xml content
<custom-actions> <action> <type>slack-alert</type> <!-- For Linux/Unix *.sh --> <executable>slack-alert.sh</executable> <!-- For windows *.bat --> <!--<executable>slack-alert.bat</executable>--> </action> </custom-actions>
Uncomment the appropriate executable tag based on windows or linux/unix machine.
Update the config.yml file in
<CONTROLLER_HOME_DIR>/custom/actions/slack-alert/conf/ directory with the required parameters. Please make sure to not use tab (\t) while editing yaml files. You may want to validate the yaml file using a yaml validator http://yamllint.com/
# Slack Webhook URL to post events from AppD to Slack # https://hooks.slack.com/services/****/***/*****) webhookUrl: "" # (optional) Overrides channel and username configured when creating Webhook. # Specify if events to be posted to a different channel and with a different identity. channel: "" username: "" #http timeouts connectTimeout: 10000 socketTimeout: 10000 #proxy details, provide either proxyUri OR proxyHost and proxyPort. proxy: #host: #port: uri: username: password:
Please refer to the following docs to create a Custom Action
Now you are ready to use this extension as a custom action. In the AppDynamics UI, go to Alert & Respond -> Actions. Click Create Action. Select Custom Action and click OK. In the drop-down menu you can find the action called 'slack-alert'.
A policy has to be associated with this action for it to be triggered. Refer the docs below
Look for the newest created message in Slack. Sample screenshot of the message is here
Always feel free to fork and contribute any changes directly via GitHub
For any questions or feature request, please contact AppDynamics Support.
|Last Update||06th Mar, 2017|