Hi,
I am using Metrics with docker but the numbers seem to be incorrect.
Docker stats:
Memory in Metrics:
My docker-compose:
app:
...
monitor:
container_name: monitor
build:
context: ../metricbeat
environment:
- appName=$appName
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /proc:/hostfs/proc:ro
- /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
- /:/hostfs:ro
metricbeat Dockerfile
FROM docker.elastic.co/beats/metricbeat:7.10.2
COPY ./metricbeat.yml /usr/share/metricbeat/metricbeat.yml
metricbeat.yml
name: "${appName}"
tags: ["dart-app"]
metricbeat.config.modules:
path: /usr/share/metricbeat/modules.d/*.yml
reload.enabled: true
processors:
- add_cloud_metadata:
output.elasticsearch:
hosts: [ "xxx" ]
setup.kibana:
host: "xxx"