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

**URL:** <https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, processes, infrastructure-operations\
**Created:** [June 4, 2024, 9:23pm UTC](https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914 "2024-06-04T21:23:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [June 4, 2024, 9:23pm UTC](https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914/1 "2024-06-04T21:23:11Z")

</div>

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.&nbsp; I don’t see the&nbsp; **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.

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [November 21, 2024, 11:53am UTC](https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914/2 "2024-11-21T11:53:53Z")

</div>

Hello&nbsp;[@36Krazyfists](https://community.dynatrace.com/user/41155),

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

---

<div class="post-metadata">

**Author:** ![36Krazyfists](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/36krazyfists/32/37434_2.png) [@36Krazyfists](https://community.dynatrace.com/u/36Krazyfists)\
**Post date:** [November 21, 2024, 11:56am UTC](https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914/3 "2024-11-21T11:56:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [November 18, 2025, 1:45pm UTC](https://community.dynatrace.com/t/whats-the-equivalent-grail-metric-key-for-builtin-tech-generic-count/45914/4 "2025-11-18T13:45:17Z")

</div>

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.&nbsp;The way it can be achieved is by counting entities themselves, for example:

```markup
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).
