Metricbeat Prometheus and cAdvisor

Hi,

I let prometheus grab the data from cAdvisor and then I try to export the data to elasticsearch with metricbeat. I see some data but not everything, for example I am interested in the value container_fs_reads_total but I fail to see it in Kibana.

heres my config:

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false

processors:
- add_cloud_metadata: ~

output.elasticsearch:
  hosts: ["IP:9200"]

metricbeat.modules:
- module: prometheus
  metricsets: ["stats"]
  enabled: true
  period: 10s
  hosts: ["IP:9090"]

Which Metricbeat version are you using? Could you share some of the events you are seeing?

i am using 6.7.0

I think I see the normal prometheus metrics, like everything starting with prometheus. Then some system fields, but I can't find any container metrics.

But it's very likely that I do something wrong.

Ah, I think you are probably looking for the collector metricset and not the stats one: https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-prometheus-collector.html

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