Here are a few quick steps to get your environment ready for today's exercises.

Step 1. Turn on Metric Ingest in the Dynatrace UI

Step 2. Create a Dynatrace API token with Metric Ingest permission

Step 1. Download and install the latest release of Telegraf from https://portal.influxdata.com/downloads/

wget https://dl.influxdata.com/telegraf/releases/telegraf-1.18.0-1.x86_64.rpm
sudo yum localinstall telegraf-1.18.0-1.x86_64.rpm

Step 2. (Optional) After the installation is complete, navigate to https://github.com/influxdata/telegraf

Step 3. Let's configure Telegraf to send data to Dynatrace

Let's tell telegraf where to send the data - documentation here https://www.dynatrace.com/support/help/shortlink/telegraf

By default, basic infrastructure metrics such as disk, memory and CPU should be enabled. Confirm by checking inputs.cpu, inputs.disk are uncommented

Step 4. Let's start Telegraf service

sudo service telegraf start

Step 1. Clone Git Hub Repo

git clone https://github.com/JasonOstroski/Perform2021-ActionableInfraScripts.git

Exercise Prep: CPU Temp

Let's generate some data for some later exercises

Kick off the CPU Temp Script

(ubuntuvm)$ cd Perform2021-ActionableInfraScripts
(ubuntuvm)$ python3 cputemp.py

Metric Browser

metricbrowser

Metric Browser vs Explorer

metricexplorer

Thresholds

Disk Used Threshold Chart

diskthreshold2diskthreshold1

Top List with Thresholds: EC2 CPU

topthreshold1topthreshold2

Optional: Top List with Threshold: Process CPU

topthreshold1topthreshold2

Splitting and Filtering

Splitting

splitting1

splitting2

CPU Temp Split

cpusplitting1

cpusplitting2

Exercise Prep: Shop Response Time

Stop CPU and start shop response time

  (ubuntuvm)$ python3 retailresponsetime.py

Dashboarding

Let's clean up the Infrastructure Overview dashboard

infradashboard

Shop Performance

Create an area chart of average response time

shopresponsetime

Create a line chart, breaking down the response time by city

Optional Exercise: Shop Performance Dashboard

regionbreakdown

Creating a dimension mananagement zone

mgmtzone

Synthetic SLO

Create a synthetic availablity SLO

syntheticslo

Service Availablity SLO

Create a Service Availablity SLO

serviceslo

Auto-Adaptive Baselines

Create an auto-adaptive baseline alert for shop response time

autobaseline

Static Thresholds

Create a Static Threshold on CPU Temp

static1

static2

Let's turn up the heat!

(ubuntuvm)$ python3 cputemp.py HHMM 10

Problem Evaluation

Create an API Token

metricapi

Postman Prep

Create a workspace: PerformHOT2021

Postman

Let's add some more dashboards!

config1

config2

How can I bring my dashboard home with me?

dashboardjson