Dashboard Markdown with a variable to substitute the tenant

Hi everyone,

I have a variable that holds the tenant ID $TenantID

Is there a way to link to a different section in Dynatrace such as https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default using a markup tile?

I can do it using code, then visualize it as a table and column = markdown, but it doesn’t look good.

What am I missing?

export default async function () {
const tenant =$TenantID; 
const url = `https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default`;
return “# [Infrastructure Overview](https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default)”;
}

Hello, @csb!

Are these documentation pages helping to address your questions?

Add a variable to a dashboard and Add Markdown to dashboard

Please let us know, thank you in advance!

Hi,
The simplest solution: you actually don’t need $TenantID at all

Dynatrace markup tiles support relative URLs, and the current environment ID is automatically inserted by the browser.
So you can link to InfraOps like this:

# [Infrastructure Overview](/ui/apps/dynatrace.infraops/explorer?perspective=Default)

This will work in any environment because the browser resolves it to:

https://{environmentid}.apps.dynatrace.com/ui/apps/dynatrace.infraops/explorer?perspective=Default

Dynatrace dashboards do not currently support injecting variables like $TenantID into markup, so relative paths are the cleanest and best approach.