# filter prometheus metrics to only get cgroup chart metrics

**URL:** <https://community.netdata.cloud/t/filter-prometheus-metrics-to-only-get-cgroup-chart-metrics/7046>\
**Category:** Help\
**Tags:** agent, exporter\
**Created:** [January 9, 2025, 2:26pm UTC](https://community.netdata.cloud/t/filter-prometheus-metrics-to-only-get-cgroup-chart-metrics/7046 "2025-01-09T14:26:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![data-smith](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@data-smith](https://community.netdata.cloud/u/data-smith)\
**Post date:** [January 9, 2025, 2:26pm UTC](https://community.netdata.cloud/t/filter-prometheus-metrics-to-only-get-cgroup-chart-metrics/7046/1 "2025-01-09T14:26:47Z")

</div>

I’m following the instructions below to filter metrics that are exported. Unfortunately i haven’t been able to filter metrics that start with cgroup.\* I just want some cgroup metrics to be exported (like cpu and memory for pods). Anyone know how you can filter them?

### Chart filtering

Netdata can filter metrics, to send only a subset of the collected metrics. You can use the configuration file

```auto
[prometheus:exporter] send charts matching = system.*

```

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 9, 2025, 7:08pm UTC](https://community.netdata.cloud/t/filter-prometheus-metrics-to-only-get-cgroup-chart-metrics/7046/2 "2025-01-09T19:08:50Z")

</div>

Hi @data-smith, it seems you’ve identified the relevant config option and know the charts you need to filter. Could you please elaborate on the specific issue you’re encountering? Did you try `send charts matching = cgroup*`?

---

<div class="post-metadata">

**Author:** ![data-smith](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@data-smith](https://community.netdata.cloud/u/data-smith)\
**Post date:** [January 9, 2025, 7:17pm UTC](https://community.netdata.cloud/t/filter-prometheus-metrics-to-only-get-cgroup-chart-metrics/7046/4 "2025-01-09T19:17:16Z")

</div>

I just tried cgroup\* and that works but cgroup.\* didn’t. I guess for regex you don’t need the period.  
Much better. Thanks!

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [January 9, 2025, 7:19pm UTC](https://community.netdata.cloud/t/filter-prometheus-metrics-to-only-get-cgroup-chart-metrics/7046/5 "2025-01-09T19:19:25Z")

</div>

It is not a regular expression but [Netdata’s simple pattern](https://learn.netdata.cloud/docs/developer-and-contributor-corner/libnetdata/simple-patterns).
