Splunk AppDynamics

When there is no data for a metric, it is not allowing me to use that in the expression

Ajay_Akunuri
New Member

Hi,

I am trying to create a dashboard to show the availability of a service. To get this, im picking the calls per min and errors per min metric. But since there are no errors, errors per min graph is showing as no data. But when I use it in an expression: ({calls} - ({errors} + 0)) * 100 / ({calls} + 1), though the calls is not 0, it still shows the graph as unavailable. 

Is there a way to set a static value when there is no data? Since in this case, the availability should be 100%, since there are no errors and we have calls. 

Labels (1)
Tags (1)
0 Karma

Nawaz_Ali_Moha1
Contributor

Hello Ajay,

As there are no errors the error per minute shows "no data available" (imagine this as null) so when you perform any operation on null you will get null value.

This issue can be resolved by setting the com.appdynamics.metric.query.metricexpressions.tolerateNull flag to true in ControllerFlagServlet. If you are using a SaaS controller please reach out to AppDynamics support to enable this flag.

 

If you are using On-Prem Controller follow the below steps to enable the flag:

1. Login to <controllerURL>/controller/

2. Use root@system and controller root password for login

3. Look for metricexpressions.tolerateNull field and set it to ‘true’

4. Hit Submit button.

0 Karma

Sailesh_Jain2
New Member

Hi @Nawaz Ali.Mohammad 

- Is this workaround valid for on-premise controller version 20.10.4?

- Will this require a controller restart?

Best Regards,

Sailesh

Tags (1)
0 Karma

Morelz
Builder

Hi Ajay

Please log a request to AppD Support, there is a feature flag they can set that resolves this problem, to ignore the empty values for the calculation to work correctly.

Ciao

Ajay_Akunuri
New Member

Thank you! Will open a support case for this

0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...