How to remove some metrics from ElasticMonitoring
search cancel

How to remove some metrics from ElasticMonitoring

book

Article ID: 207894

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

When using Elastic Search agent, it throws a lot of metrics, how can we filter it:

Environment

CA Application Performance Management 10.7

Resolution

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.