DQL
Questions about Dynatrace Query Language
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What's the equivalent Grail Metric Key for builtin:tech.generic.count

36Krazyfists
Advisor

It's great that so many metrics are now in Grail, but there are still some classic metric keys that I don't see equivalent Grail metric keys for in the docs.  I don't see the builtin:tech.generic.count classic key mentioned in the unsupported section or anything.  

 

I'd like to be able to get a count of the number of process instances for a process group (well, ideally I'd like to have a query that returns a table of process groups with a count of instances for each one.

3 REPLIES 3

MaciejNeumann
Community Team
Community Team

Hello @36Krazyfists,

I've got information from our Developer team that Grail equivalent to builtin:tech.generic.count metric isn't publicly available yet. If this changes, I'll let you know.

If you have any questions about the Community, you can contact me at maciej.neumann@dynatrace.com

Cool, thanks for the reply.  Do you know if there is a way to achieve what I'm looking for with a DQL query?

Sorry for the very, very late reply, but I just got a message from our developers.

The metric is still not available in 3rd gen. The way it can be achieved is by counting entities themselves, for example:

fetch dt.entity.process_group
| filter id == "PROCESS_GROUP-476D77531A1A1CBB"
| fieldsAdd arraySize(instantiates[dt.entity.process_group_instance])

It will display only the current value though (so a count of the number of PGI's over time is not possible at the moment). 

If you have any questions about the Community, you can contact me at maciej.neumann@dynatrace.com

Featured Posts