how to delete a metric with a space in the name by using Smartstor tool?

book

Article ID: 225227

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

How to delete a metric with a space in the name by using Smartstor tool? Example:

By Frontend
Automatic Entry Points

Environment

Release : 10.7.0

Component : APM Agents

Resolution

Suppose you want to delete the Automatic Entry Point metric, this one has a metric that contains the name in the middle of the metric path and also has a metric beginning with the name eg:

Automatic Entry Point | Server name |
Server name | Automatic Entry Point 

If you use the below syntax, you will delete all metrics which contains the Automatic Entry Point, Eg:

Automatic Entry Point | Server name |
Server name | Automatic Entry Point 
'./SmartStorTools.sh test_regex -metrics ".*Automatic Entry Points.*" -src /opt/ca/coletor1/data > MetricsTest.csv'

If you want to delete only the metrics that start with Automatic Entry Point, use below syntax:

Automatic Entry Point | Server name |
'./SmartStorTools.sh test_regex -metrics "^Automatic Entry Points.*" -src /opt/ca/coletor1/data > MetricsTest.csv'