# Metricbeatでpodmanのリソース情報を取得したい

**URL:** <https://discuss.elastic.co/t/metricbeat-podman/216621>\
**Category:** 日本語による質問・議論はこちら\
**Created:** [January 27, 2020, 8:58am UTC](https://discuss.elastic.co/t/metricbeat-podman/216621 "2020-01-27T08:58:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![giraffe](https://avatars.discourse-cdn.com/v4/letter/g/f1d935/32.png) [@giraffe](https://discuss.elastic.co/u/giraffe)\
**Post date:** [January 28, 2020, 2:09am UTC](https://discuss.elastic.co/t/metricbeat-podman/216621/3 "2020-01-28T02:09:55Z")

</div>

tsgkdtさん 返信ありがとうござます。

解決できましたので、本家の方に解法をpostしました。

> [@Metricbeat: How to monitor podman resources](https://discuss.elastic.co/t/metricbeat-how-to-monitor-podman-resources/216619/3):
>
> Thank you for your advice. The default settings were: process.cgroups.enabled: true [https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-system.html](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-system.html) And disabled other default settings below. It worked fine. /etc/metricbeat/modules.d/system.yml: # process.include\_top\_n: # by\_cpu: 5 # include top 5 processes by CPU # by\_memory: 5 # include top 5 processes by memory I was able to get the value with kibana. Thank you ! Dashboard [Metricbeat System] Cont…

私が監視したいコンテナが、dockerではないので、dockerモジュールが使用できません。  
※dockerモジュールはdocker api必須。

その為、systemモジュールのcgroup監視を使用したいと考えたのですが、  
kibanaでうまく値が見えませんでした。

理由は、以下デフォルト設定で、低い負荷の情報がマスクされていたからでした。

/etc/metricbeat/modules.d/system.yml:

```
process.include_top_n:
    by_cpu: 5 # include top 5 processes by CPU
    by_memory: 5 # include top 5 processes by memory
```

これらをコメントアウトしたところ、うまく情報がとれました。

ありがとうございました。

---

_[View the full topic](https://discuss.elastic.co/t/metricbeat-podman/216621)._
