Skip to content

anton-fre/slo-simply-smarter

 
 

Repository files navigation

Dashboarding Dynatrace Simply Smarter

Foundations for deployment & configuration : quickstart-ace-configurator
ITSM integration & SLO Quality of Service : itsm-integration-with-slo
✅ Dashboarding Dynatrace Simply Smarter : slo-simply-smarter

Demo (internal only): https://demo.live.dynatrace.com

image

1) Prerequisites installation

2) Create an APi-Token with this scope :

  • Read configuration
  • Write configuration
  • Read SLO
  • Write SLO

3) Automatic installation and update with python script

Prerequisite : python with requests installed

python 3.6+
pip install requests

Download the script

git clone https://github.com/dynatrace-ace-services/slo-simply-smarter
cd slo-simply-smarter

Linux
Export variables

export MyTenant=abcd123.live.dynatrace.com for saas or export MyTenant=domaine.com/e/abcd12234 for managed (without https://...)
export MyToken=dt0c01.1234ABCD.XXXX

Optional variables

export Deploy=ALL|SLO (default Deploy=ALL, Deploy=SLO option does not deploy the dashboards but only creates the mapping SLO with already imported dashboards)
export Owner=ACE (default Owner=smarter, the owner don't need to exist as user)

Run the script

python3 Deploy_and_Update_SLO_Simply_Smarter.py

image

The SLO simply smarter is installed


If you use windows,

windows cmd
Export variables

set MyTenant=abcd123.live.dynatrace.com for saas or export MyTenant=domaine.com/e/abcd12234 for managed (without https://...)
set MyToken=dt0c01.1234ABCD.XXXX

Run the script

python Deploy_and_Update_SLO_Simply_Smarter.py

windows powershell
Export variables

$env:MyTenant="abcd123.live.dynatrace.com" for saas or export MyTenant=domaine.com/e/abcd12234 for managed (without https://...)
$env:MyToken="dt0c01.1234ABCD.XXXX"

Run the script

python Deploy_and_Update_SLO_Simply_Smarter.py

From Mission Control

Doesn't work from Azure Bash. Works fine from VM host : linux or windows.

Open the python script and add these two temporary variables Cookie & X-CSRFToken and run the script (in this case MyTenant=[clusterid]-managed.internal.dynatrace.com:8021/e/[tenantid]) :

Cookie='xxx'
CSRFToken='xxx'

From the Mission Control, Dev Tools, collect the temporary X-CSRFToken and the full Cookie like that image

and run the python script as described above.



Installation without Python

If you can't install SLO Simply Smarter with python script, you can follow this workflow installaton which uses Bizops and Monaco

1) Create an APi-Token with this scope :

  • Read configuration
  • Write configuration
  • Read SLO
  • Write SLO
  • Access problem and event feed, metrics, and topology (*)
  • User sessions(*)
  • Read metrics(*)
  • Write metrics(*)
  • Ingest Metrics(*)

image
(*) token used by BizOpsConfigurator (detail)

2) BizOps : import Dashboard Dynatrace: Simply Smarter

For Saas and Managed, with the bizops configurator

https://dynatrace.github.io/BizOpsConfigurator/index.html#begin
use your *tenant** and **token** (don't care with Source)
connect
deploy 
.../ALL
Dynatrace_Simply Smarter
next
advanced (you can define the owenr = smarter)
done

image

  • For OffLine environment, follow the process here

3) MonacoImport SLO template

installation

git clone https://github.com/dynatrace-ace-services/slo-simply-smarter
cd slo-simply-smarter
curl -L https://github.com/dynatrace/dynatrace-configuration-as-code/releases/download/v1.8.9/monaco-linux-386 -o monaco
chmod +x monaco

varaiables

export NEW_CLI=1
export MyTenant=abcd123.live.dynatrace.com for saas or export MyTenant=domaine.com/e/abcd12234 for managed (without https://...) or 
export MyToken=dt0c01.1234ABCD.XXXX

deploy

./monaco deploy -e=environments.yaml SLOSimplySmarter

4) Mapp SLO Simply Smarter and SLO Resource Optimization with SLO Smarter

Manually mapping

SLO Simply Smarter: for each SLO tile, mapp SLO Smarter and period
Set the period -1M and -1y manually for all the SLOs (by default -1w)

Application

Smarter - Application Performance => 1w, 1M and 1y
Smarter - Browser Monitor Availability => 1w, 1M and 1y
Smarter - HTTP Monitor Availability => 1w, 1M and 1y

Webservice and Webrequest

Smarter - Service Performance => 1w, 1M and 1y
Smarter - Service Availability => 1w, 1M and 1y

Database

Smarter - Database Performance => 1w, 1M and 1y
Smarter - Database Success Rate => 1w, 1M and 1y

image

SLO Resource Optimization : for each SLO tile, mapp SLO Smarter and period

Memory

Optimization - Memory Usage => 1w, 1M and 1y

CPU

Optimization - CPU Usage => 1w, 1M and 1y

Disk

Optimization - Disk Usage => 1w, 1M and 1y    

image

Automatic mapping

With Python - : see paragraph Automatic installation with python script with this variable:

export Deploy=SLO


Installation for OffLine environment

  1. offline insatallation
    with python script and witout Internet access : click here

  2. manual installation
    only if you can't install SLO Simply Smarter with python script or with Bizops, follow the process here

About

Best practices - Simply Smarter dashboards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%