我正在Swarm中尝试Prometheus / NodeExporter / Grafana。
我有
version: '3.3'
services:
grafana:
image: grafana/grafana:latest
networks:
- net
- webgateway
logging:
driver: json-file
deploy:
labels:
traefik.docker.network: webgateway
traefik.enable: 'true'
traefik.port: '3000'
node-exporter:
image: prom/node-exporter:latest
command: --path.procfs=/host/proc --path.sysfs=/host/sys --path.rootfs=/host --collector.filesystem.ignored-mount-points="^(/rootfs|/host|)/(sys|proc|dev|host|etc)($|/)"
--collector.filesystem.ignored-fs-types="^(sys|proc|auto|cgroup|devpts|ns|au|fuse\.lxc|mqueue)(fs|)$"
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
networks:
- net
logging:
driver: json-file
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
networks:
- net
configs:
-
source: prometheus6
target: /etc/prometheus/prometheus.yml
logging:
driver: json-file
networks:
net:
driver: overlay
webgateway:
external: true
configs:
prometheus6:
external: true
在Prometheus中,通过node_network_iface_id,我看到了eno1界面。
使用node_network_receive_bytes_total,我只看到eth0,eth1,lo。
我错过了什么吗?我不明白什么?如何看待当前主机的下载/上传速度?