Splunk AppDynamics

How to use a variable in DashStudio?

Chris_Byrne
Engager

I'm very interested in using the dashboard variable feature. However, the documentation on how to use it is sparse (ref: https://docs.appdynamics.com/display/PRO45/Dashboard+Variables). I've tried to use it in both a metric and an ADQL query.

In the metric, it lets me choose the variable in the application dropwdown (i have it as an application) - but the 3rd linked dropdown does not activate. Note that I do have a default set.

In the ADQL query, I can't find a way to introduce the variable. My variable name is ChosenApp, which shows at the top as $ChosenApp, I've taken a valid query that produces data:

SELECT series(eventTimestamp, "30m"), count(*) FROM transactions where application = "RealAppName"

and tried to get it to take the variable - to no avail. Items I've tried replacing "RealAppName" with include:


$ChosenApp
"$ChosenApp"
ChosenApp
"ChosenApp"
"{ChosenApp}"
"{$ChosenApp}"
{ChosenApp}
{$ChosenApp}
"@ChosenApp"
@ChosenApp

I'm out of ideas on both and google was no additional help. Is anyone able to provide further instruction on what to try?

Labels (1)
0 Karma
1 Solution

Brian_Zaik
Explorer

Hi Chris,

So sorry for your frustration here. We will look to improve the documentation. This should be the correct syntax: "${RealAppName}"

as in: SELECT series(eventTimestamp, "30m"), count(*) FROM transactions where application = "${RealAppName}"

View solution in original post

Brian_Zaik
Explorer

Hi Chris,

So sorry for your frustration here. We will look to improve the documentation. This should be the correct syntax: "${RealAppName}"

as in: SELECT series(eventTimestamp, "30m"), count(*) FROM transactions where application = "${RealAppName}"

Keith_Sanders
Engager

Can the variable also be used in a text box widget?

Tags (1)
0 Karma

Brian_Zaik
Explorer

Hi Keith, This is not yet supported. We will go back and improve the Label widget soon.

Chris_Byrne
Engager

That did it, marking as the answer.  Dang I was all around this answer - just not on it.

Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...