When using Elastic Search agent, it throws a lot of metrics, how can we filter it:
CA Application Performance Management 10.7
Basically, you must filter inside elasticsearch_schema.json file, the correct section is the below:
{
"xml_ns": "",
"src": "",
"var": "",
"id": "clusterhealthindices",
"url": "/_cluster/health?level=indices",
"tokens": {
"clusterName": "$['cluster_name']"
}
So, suppose that you want to filter to show only metrics that have the "PRD" at the beginning, above is the default configuration. You must change it into URL row, Eg:
{
"xml_ns": "",
"src": "",
"var": "",
"id": "clusterhealthindices",
"url": "/_cluster/health/*prd*?level=indices",
"tokens": {
"clusterName": "$['cluster_name']"
}
Restarting the agent should bring only the correct metrics.