24 Jan 2025 06:29 AM
is it possible to customize metric value to display in data explored.
for example if database state is 0 , i want to display it as online . and based on other values to display values as "offline", "recovery mode" etc.
Solved! Go to Solution.
24 Jan 2025 07:24 AM
You can customize the output by leveraging the metric selector. Go to the advanced mode of the Data Explorer. There you'll see a query like `my_metric:splitBy():sort(value(auto,descending)):limit(20)`. You can use the partition operator to map the values to values of the dimension state. For example:
my_metric:splitBy():auto:partition("state",value("online",eq(0)),value("offline",eq(1)))
Note that the partition operator also works if the database state is a dimension of your metric. See https://github.com/Dynatrace/dynatrace-api/blob/master/metric-example/metric-selector-cheat-sheet.md... for details.
25 Jan 2025 01:46 PM
perfect work like charm