This script run NRQL query and post the result to Slack. I use it to monitor transaction errors for applications.
The following is sample Slack message created with this script.
First, fill config/dev.exs
. You need newrelic query key and slack API key.
$ mix deps.get
$ mix escript.build
$ ./nrql_to_slack