I have created the new custom metric in schema.json as per documentation (see below) but it is not reported in the Metric View:
{
"query":"select ( 'ON' = (select SERVICE_STATE FROM performance_schema.replication_connection_status)) as state",
"metrics":[
{
"metricPath":[
{
"name":"Replica:Slave IO Running"
}
],
"metricType":"IntCounter",
"metricValue":"$.resultSet[0].state"
}
],
"calculatedMetrics":[ ]
},
What could be the issue ?
DX APM
Incorrect metricType in-use
1. Open schema.json
2, Change the value of MetricType from "IntCounter" to "IntFluctuatingCounter"
3. Save the file and restart the InfastructureAgent