Skip to content

A simple projection calculator to estimate ASU consumption in your Dynatrace Environment prior to enabling Application Security

Notifications You must be signed in to change notification settings

aericjw/AppSecUnitCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Application Security Unit Calculator for Dynatrace

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

Prerequisites (Custom App)

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

Prerequisites (Command Line)

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

Entities considered for calculation

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)

Monitoring Rules

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)

Support Policy

THIS IS NOT PART OF THE DYNATRACE PRODUCT. This is meant to be a simple way to provide a projection on ASU consumption.

Current Development

A Dynatrace Custom App is currently being developed, all the relevant files are in the app-sec-unit-calculator directory.

About

A simple projection calculator to estimate ASU consumption in your Dynatrace Environment prior to enabling Application Security

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published