This is a simple example of utilizing alexa voice commands to query the Datadog Api for specific metrics.
Currently there are only a few query's that are supported: CPU system.mem.total
, Memory system.mem.total
disk system.disk.total
:
I also leveraged the .rollup() function for the api to give me a single value.
Alexa, ask Datadog what is my CPU:
will result in a response along the lines of:
Your average CPU right now is 4%
I created a endpoint that also utilized Datadogs Webhook integration
You'll also need to supply your Datadog API and app keys in order for the queries to work properly. You can set these in config.py
:
DD_API_KEY: 'TODO',
DD_APP_KEY: 'TODO'