cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dashboard Metric Expression Calculation Issue

james.conlin
Explorer

Hi folks

 

We have AppD running for some services we are monitoring, and I have noticed that on the metric expression calculation, if one of the values I am calculating against is "no data found" the calculation fails completely.

 

My question is this: Is there a way that we can configure the metric to show a zero where no data is found instead of "no data found"?

 

Thanks

 

James

11 REPLIES 11

Rajesh.Putta
AppDynamics Team

Hi James,

 

Before i answer your question, i would like to give you some technical information and then that explains your question

 

We have an option to zero fill metric values when there is no data reported for that metric. As you mentioned that the metric which you are using in metric expression calculation  to plot on dashboard has some times no data reported and in those cases, you see calculation failures.

 

To avoid it, you could give a try of this option to fill the no data values with zero when that metric doesn't get any values reported.

 

 

Steps for making those changes

 

1) Take a backup of domain.xml file located under <controller-install-dir>/appserver/glassfish/domains/domain1/config/

 

2) Stop controller appserver as shown here

 

Navigate to <controller-install-dir>/bin

 

For windows

 

controller.bat stop-appserver

 

For Linux

 

./controller.sh stop-appserver

 

3) Please ensure that appserver is stopped using ps -ef |grep "java"

 

4) Once controller appserver is stopped, go to domain.xml file located under <controller-install-dir>/appserver/glassfish/domains/domain1/config/

 

add 

 

<jvm-options>-Ddisable.zero.fill=false</jvm-options>

 

along with other JVM options

 

5) Restart controller appserver as shown here

 

For windows

 

controller.bat start-appserver

 

For Linux

 

./controller.sh start-appserver

 

Wait for 10-15 mins for appserver to start and then check the behavior. You expect to see zero filled values for no data reported for metrics.

 

Thanks

Rajesh

Hi Rajesh

 

Thank's so much for this information. We will carry out the steps you provided during an out of hours window and hopefully tomorrow I will be able to post with my results.

 

Thanks

 

James

Thanks James. Before you apply this change, could you please cross check whether that  particular metric is filled with zero values or not when there is no data reported. You could check those values of that metric from metric browser.

 

If this is not filled with zero when there is no data reported for that metric, please go ahead and apply the recommendations as mentioned earlier.

 

 

Thanks

Rajesh

scott.barnes
New Poster

Hi Rajesh,

 

I'm having a similar issue where a value is returning null and by using it as part of a metric expression, it nulls the whole metric expression.

 

I also tried to build a pie chart that uses {calls}-{slow}-{verySlow}-{stalls} to equate the successful BTs, if any of the values return "--" the pie chart does not display correctly.

 

Any help would be greatly appreciated.

 

Cheers,

Scott.

Jeanie.Kedia
AppDynamics Team (Retired)

Hi @scott.barnes

There doesn't seem to be a true and guaranteed solution/fix to this problem at the moment. Thanks for bringing it out our attention. 

 

Community members may make suggestions (similar to the one Rajesh made above) it's worth a try but not a solution as such. So, I hope other community members can share their experience and offer something of value to help you and others out with this issue.

 

 

 

 

 

 

Hi there .. is there a fix to this issue at least in current versions? 

 

Thx

 

This fix doesn't work. I have applied it on 4.5.14 controller and it didn't work

Hi @Chidi.uchegbu,

 

This post is from a while back. Our latest Saas Controller is now on 20.6.0 as of earlier this month. Are you able/willing to upgrade to that version and see if this helps fix the issue? 


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

 

Hi Ryan,

 

I am just testing this on   AppDynamics Controller build 20.6.0-2248 but the behaviour is erratic.

I saw it working when one metric value was null but on restarting the controller it stopped working.

On-Demand Webinar
Discover new Splunk integrations and AI innovations for Cisco AppDynamics.


Register Now!

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here
Top Kudoed Authors