Logical router interface metrics disappearing and reappearing.
search cancel

Logical router interface metrics disappearing and reappearing.

book

Article ID: 399767

calendar_today

Updated On:

Products

VMware Aria Operations (formerly vRealize Operations) 8.x

Issue/Introduction

At the time of issue Metric folder "Router Interface Statistics" and "Statistics" disappears and reappears.

Environment

Aria Operations: 8.18.x
NSX: 4.2.0.2.0.24278654

Cause

It is as per product design, these stat metrics are purposefully skipped when the difference between Current and Prev stats for router is negative to avoid Pricing calculation logics.

 

 

Resolution

Workaround is to be implemented only when negative stats are acceptable.

  • SSH to Primary node.
  • Take a backup of file  "/usr/lib/vmware-vcops/user/plugins/inbound/NSXTAdapter3/conf/NSXT.properties" 
    cp  /usr/lib/vmware-vcops/user/plugins/inbound/NSXTAdapter3/conf/NSXT.properties  /usr/lib/vmware-vcops/user/plugins/inbound/NSXTAdapter3/conf/NSXT.properties.bkp 
  • Edit "/usr/lib/vmware-vcops/user/plugins/inbound/NSXTAdapter3/conf/NSXT.properties" file using vi editor.
  • Add property "SKIP_NEGATIVE_STATS_FOR_ROUTER" and set it to value "false".

Additional Information

To validate the issue, confirm what stats has been received from NSX API, enable debug logging "com.vmware.adapter3.nsxt.collector.managercollector.metrics.LogicalRouterMetricCollector" for collector logs.

Search for following keywords in NSX adapter logs.

logger.info("Prev stats for router: "logicalRouter.getid()" is: "+ prevRouterStatistics);
logger.info("Current stats for router: "logicalRouter.getid()" is: "+ routerStatistics);