# Creating dashboard for container events from a container group

**URL:** <https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223>\
**Category:** DQL\
**Tags:** dql, grail, dashboards\
**Created:** [February 21, 2024, 1:49pm UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223 "2024-02-21T13:49:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasdev](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kasdev](https://community.dynatrace.com/u/kasdev)\
**Post date:** [February 21, 2024, 1:49pm UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223/1 "2024-02-21T13:49:40Z")

</div>

hello.

i need to create a dashboard for all container events in a specific container group.

i guess i need to use dql but i dont know how to do it.

lets assume container group name is mycontainergroup. do you have any suggestion?

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [February 21, 2024, 8:12pm UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223/2 "2024-02-21T20:12:59Z")

</div>

Does it works if you use the namespace to filter it instead container group?

```markup
fetch events
| filter matchesPhrase(k8s.namespace.name, "dynatrace")

```

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [February 21, 2024, 10:20pm UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223/3 "2024-02-21T22:20:26Z")

</div>

[@kasdev](https://community.dynatrace.com/user/72156)&nbsp;&nbsp;But keep in mind&nbsp; if you run “fetch events” then every time it will consume some additional license.

---

<div class="post-metadata">

**Author:** ![Dant3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dant3/32/159_2.png) [@Dant3](https://community.dynatrace.com/u/Dant3)\
**Post date:** [February 21, 2024, 10:44pm UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223/4 "2024-02-21T22:44:08Z")

</div>

If this are events for k8 (pulled,killing, backoff… etc) then No need for DQL. There is a metric tha have that info if you have the events enable (i would asssume you do) metric :&nbsp;builtin:kubernetes.events

 ![Dant3_0-1708555234772.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/9/d9b9f94be59d0764c77ace3e4ba1b4f9b2256588.png)

If you are speaking about events in the AI, for problem detection,&nbsp; then there is this metric:&nbsp; **dsfm:server.events.event\_processing** but you can’t split or search for an specific entity.

---

<div class="post-metadata">

**Author:** ![mizso74](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mizso74/32/41729_2.png) [@mizso74](https://community.dynatrace.com/u/mizso74)\
**Post date:** [February 21, 2024, 10:44pm UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223/5 "2024-02-21T22:44:32Z")

</div>

Hi&nbsp;[@kasdev](https://community.dynatrace.com/user/72156),

There is another option too if it is possible to use classic dashbboard with data explorer. If you have API integration to your k8s cluster you can use the builtin:kubernetes.events with many dimensions

 ![Mizs_1-1708555108189.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9f505e4dee298d5a79a577bb1e09a3087304e300.png)

You can create fancy dashboard tiles, like this:

 ![Mizs_2-1708555449319.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9250c7bebc67553b8a2f33ee35e85d78cf32b080.png)

I hope it helps.

Best regards,

Mizső

---

<div class="post-metadata">

**Author:** ![kasdev](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kasdev](https://community.dynatrace.com/u/kasdev)\
**Post date:** [February 23, 2024, 11:28am UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223/6 "2024-02-23T11:28:10Z")

</div>

hello. thanks for your help.

but i need those events you can see in visual:

 ![bu eventler dashboard haline getirilebilir mi2.jpeg](https://global.discourse-cdn.com/dynatrace/original/2X/2/2fbfbe678a0c465547192a9615cd19d75604ff39.jpeg)

---

<div class="post-metadata">

**Author:** ![Dant3](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dant3/32/159_2.png) [@Dant3](https://community.dynatrace.com/u/Dant3)\
**Post date:** [February 23, 2024, 11:38am UTC](https://community.dynatrace.com/t/creating-dashboard-for-container-events-from-a-container-group/44223/7 "2024-02-23T11:38:15Z")

</div>

You will need to use DQL for that.

fetch events

Is the base query you need and then filter by PG, what [@dannemca](https://community.dynatrace.com/user/18264)&nbsp;said.
