Visualizing Data ================= \ - I tried using the Postman API with JSON but ran into issues as I have never used this before. I decided to configure the API with Python as I am more comfortable with this language. \ Initialize Python API for Datadog --------------------------------- 1. Install the Python Datadog package \ ``pip install datadog`` \ 2. Install the Datadog API client \ ``pip3 install datadog-api-client`` \ .. note:: You must have pip3 installed to download the Datagdog Library to the VM Create Python Script to Display Timeboards in Datadog UI -------------------------------------------------------- 3. Create a new Python file within ``/etc/python`` \ ``vagrant@vagrant:~$ sudo vim /etc/python/timeboard_data_exercise.py`` \ 4. Add the following code to that file \ .. image:: images/timeboard_data_exercise_py.png :align: center \ 5. I Initiated these two commands for the python script to run and populate data in the Datadog UI \ ``vagrant@vagrant:~$ export DD_SITE=" " DD_API_KEY="" DD_APP_KEY=""`` \ ``vagrant@vagrant:~$ python /etc/python/timeboard_data_exercise.py`` \ 6. I Checked the Datadog UI Dashboard List and saw my "Visualizing Data Exercise" Timeboards were created and populated. \ - Three timeboards were created to show my_metric scoped over the host, any anomalies within the mysql.performance.open_files metric outside of two stand deviations, and my_metric rolled up to sum all the points for the past hour into one bucket. \ .. image:: images/visualizingdata_timeboard.png :align: center \ `Visualizing Data Timeboard `__ 7. Set the Timeboard's timeframe to 5 minutes and take a snapshot of this timeboard graph - use the @ notation to send it to yourself \ .. image:: images/datadog_@_snapshot.png :align: center \ **Bonus**: The Anomlay graph is displaying on any value outside of the 2 standard deviations.