cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

can dataexplorer output be customized?

Vijayt
Participant

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. 

2 REPLIES 2

stemos
Dynatrace Advisor
Dynatrace Advisor

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.

perfect work like charm

Featured Posts