Metricbeat error: failed to get docker stats: Cannot connect to the Docker daemon at unix:///run/podman/io.podman

Hi all. I am facing an issue when trying to get docker metrics via podman. I am getting the following error:
"failed to get docker stats: Cannot connect to the Docker daemon at unix:///run/podman/io.podman. Is the docker daemon running?"
My metricbeat config is as follows:

# Ansible managed

################### metricbeat Configuration #########################

############################# metricbeat ######################################
metricbeat:
  processors:
  - add_host_metadata: null
  - add_cloud_metadata: null
  - add_docker_metadata: null
metricbeat.modules:
- enabled: true
  hosts:
  - localhost:15672
  metricsets:
  - node
  - queue
  - connection
  - exchange
  module: rabbitmq
  password: mypwd
  period: 30s
  username: rmquser
- enabled: true
  hosts:
  - localhost:8810
  metricsets:
  - dbstats
  - status
  - collstats
  - metrics
  module: mongodb
  password: mypwd
  period: 30s
  username: root
- enabled: 'true'
  hosts:
  - unix:///run/podman/io.podman
#    match_source_index: 5
  metricsets:
  - container
  - cpu
  - diskio
  - event
  - healthcheck
  - info
  - memory
  - network
  module: docker
  period: 30s
- core.metrics:
  - percentages
  cpu.metrics:
  - percentages
  - normalized_percentages
  enabled: true
  metricsets:
  - cpu
  - load
  - memory
  - network
  - process
  - process_summary
  - uptime
  - socket_summary
  - core
  - diskio
  - filesystem
  - fsstat
  - service
  module: system
  period: 30s
  processes:
  - .*
setup.ilm.check_exists: false


###############################################################################
############################# Libbeat Config ##################################
# Base config file used by all other beats for using libbeat features

############################# Output ##########################################

output:
 
  elasticsearch:
 
    enabled: true
 
    hosts:

        - https://myhost:443 
    password: mypass
 
    protocol: https
 
    username: beats_writer

Host OS Distribution: rhel
Host OS version: 7.9
Podman version: 1.6.4

Any help in this regard would be highly appreciated.
Thanks.

Did you find a solution for this?

@Kay_Khan not yet. Are you facing similar issue?

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