Metricbeat: How to monitor podman resources

Hi Team

environment:
CentOS 7.7
metricbeat 7.5.2
podman 1.4.4-4

I'm using podman (https://podman.io/) for run containers.
Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System.

Please tell me how to monitor containers, such as monitoring cgroups directly without using docker api.

This page says it can be done, but I don't know how to set it.

https://www.elastic.co/products/beats/metricbeat
: It does this by directly reading the cgroups information from the proc file system, which means that it doesn’t need privileged access to the Docker API and works for other runtimes as well.

/etc/metricbeat/modules.d/system.yml
cgroups: true
process.cgroups.enabled: true

The above did not work.

best regards,

Hey!

You can use something like what you already tried. You can find more information about this blogpost.

Also if you have Kubernetes involved you can use Kubernetes module directly.

C.

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

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] Containers overview ECS

Container CPU usage [Metricbeat System] ECS
"Container ID","Process name","CPU user"...
"libpod-56677f94b50a7cd0b4472a41b1ec6e16bda7e832a5f3c2c477339b47d799e0b0.scope","nginx","1,310,150,000,000"...

Container Memory stats [Metricbeat System] ECS
"Container ID","Process name","Usage"...
"libpod-56677f94b50a7cd0b4472a41b1ec6e16bda7e832a5f3c2c477339b47d799e0b0.scope","nginx","6447104"...

Container Block IO [Metricbeat System] ECS
"Container ID","Process name",Total,"I/O"
"libpod-56677f94b50a7cd0b4472a41b1ec6e16bda7e832a5f3c2c477339b47d799e0b0.scope","nginx","23126016,276"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.