A simple projection calculator to estimate ASU consumption in your Dynatrace Environment prior to enabling Application Security
Read more about Application Security Licensing: Classic Licensing DPS
The Dynatrace App Toolkit is necessary to deploy an application to your Dynatrace Environment
cd AppSecUnitCalculator/app-sec-unit-calculator
npm install
Configure app.config.ts
to point to your Dynatrace Environment URL
import type { CliOptions } from 'dt-app';
const config: CliOptions = {
environmentUrl: 'https://<environmentID>.apps.dynatrace.com/',
app: {
name: 'AppSec Unit Calculator',
version: '1.0.0',
description: 'A simple projection calculator to estimate ASU consumption',
id: 'my.app.sec.unit.calculator',
scopes: [{ name: 'environment-api:entities:read', comment: 'Read Entities'}]
},
};
module.exports = config;
Deploy Dynatrace App (run command inside app-sec-unit-calculator directory)
npm run deploy
This script will require an API token created from your Dynatrace environment with the entities.read
scope
It will also require your tenant URL to be supplied without any leading slashes:
✅ https://abc1234.live.dynatrace.com
❌ https://def5678.live.dynatrace.com/
The script reads from the following environment variables:
DYNATRACE_ENV_URL
- for the URL
DYNATRACE_API_TOKEN
- for the API token
This calculator only considers Hosts that are currently running, have memory properties detected, and have a Node.js, .NET, Golang, Java, PHP, or Kubernetes process running on it.
PLEASE NOTE: The calculator uses Dynatrace's Monitored Entities API to get host information. Due to API limitations, this calculator is likely to slightly overestimate projections. It's also not going to include any use of monitoring rules (see below)
Projections will be done for every host in the environment, but you may use monitoring rules to only specify where Application Security is enabled:
Third-Party Vulnerability Monitoring Rules (RVA)
Code-Level Vulnerability Monitoring Rules (RVA)
Application Protection Monitoring Rules (RAP)
THIS IS NOT PART OF THE DYNATRACE PRODUCT. This is meant to be a simple way to provide a projection on ASU consumption.
A Dynatrace Custom App is currently being developed, all the relevant files are in the app-sec-unit-calculator directory.