The symptom is observed, when under the NSX-T data source, the box "Enable latency metric collection" is checked.
To obtain the information needed to confirm the issue and resolve it, the easiest way is to review collector logs by connecting to the collector VM via SSH.
The collector logs can be found inside the collector VM at the path "/var/log/arkin/collector/"
Inside that directory, typically there will be a series of files. Example below:
collector.STDOUT-####-##-##-03.03.26.log.errorcollector.STDOUT-####-##-##-12.01.42.log.errorcollector.STDOUT-####-##-##-13.07.13.logcollector.STDOUT-####-##-##-13.25.14.logcollector.STDOUT-####-##-##-13.39.00.logcollector.STDOUT-####-##-##-13.56.15.logcollector.STDOUT-####-##-##-14.12.45.logcollector.STDOUT-####-##-##-14.29.30.logcollector.STDOUT-####-##-##-14.44.10.logcollector.STDOUT-####-##-##-15.00.25.log
In each file name, the "####-##-##" string will be the date in YYYY-MM-DD format, and the number to the right will be the time stamp of the first entry in the file, in HH-MM-SS format (the time zone will be UTC time).
The information you seek will typically be located in the file whose name contains the text string "log.error". Start with the most recent time stamp.
An example command to reveal the information would be (assuming the file list example above):
less collector.STDOUT-####-##-##-12.01.42.log.error | grep -B4 duplicate
A sample output from the above command would have a format like below:
####-##-##T12:18:40.103Z ERROR dataprovider.utils.HttpUtils NSXT_#####################_Config_OpMgr-4 checkStatusAndThrow:41 API /api/v1/service-configs error response {
"httpStatus" : "BAD_REQUEST",
"error_code" : 41013,
"module_name" : "service-config",
"error_message" : "ServiceConfig precedence value 1 is duplicate for given profile type [LatencyStatProfile]. Specified value is present in ServiceConfig ServiceConfig/########-####-####-###-############"
--
####-##-##T12:48:42.050Z ERROR dataprovider.utils.HttpUtils NSXT_#####################.com_Config_OpMgr-3 checkStatusAndThrow:41 API /api/v1/service-configs error response {
"httpStatus" : "BAD_REQUEST",
"error_code" : 41013,
"module_name" : "service-config",
"error_message" : "ServiceConfig precedence value 1 is duplicate for given profile type [LatencyStatProfile]. Specified value is present in ServiceConfig ServiceConfig/########-####-####-###-############"
NOTES:
VMware Aria Operations for Networks 6.13
VMware Aria Operations for Networks 6.14
There is a duplicate Latency Statistic Profile in NSX which causes a latency metric data collection failure in VCF Operations for Networks.
The permanent solution before we can enable Latency is to clear the duplicate object "########-####-####-###-############" as obtained above.
https://nsx-ip/api/v1/service-configs/########-####-####-###-############" (GET API) [POSTMAN]ID: Delete API https://nsx-ip/api/v1/service-configs/########-####-####-###-############