How to delete a metric with a space in the name by using Smartstor tool? Example:
By Frontend
Automatic Entry Points
Release : 10.7.0
Component : APM Agents
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'