name: siot volumes: cv-prome: driver: local networks: cv: hw: internal: true services: sysexporter: image: harbor.arfa.wise-paas.com/cvmt/sysexporter:${CVMT_BUILDTAG:-latest} build: {context: ., target: sys} restart: unless-stopped profiles: [cv, ex] networks: [hw] pid: host labels: prometheus.exporter.enable: Y prometheus.exporter.name: sys prometheus.exporter.port: 9100 volumes: - /:/host:ro command: # https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-prometheus/prometheus-config-examples/docker-compose-linux/ - --path.rootfs=/host - --path.procfs=/host/proc - --path.sysfs=/host/sys - --no-collector.arp - --no-collector.bcache - --no-collector.bonding - --no-collector.buddyinfo - --no-collector.btrfs - --no-collector.conntrack #- --no-collector.cpu - --no-collector.cpufreq - --no-collector.diskstats - --no-collector.drbd - --no-collector.dmi - --no-collector.edac - --no-collector.entropy - --no-collector.ethtool - --no-collector.filefd #- --no-collector.filesystem - --no-collector.fibrechannel - --no-collector.hwmon - --no-collector.infiniband - --no-collector.interrupts - --no-collector.ipvs - --no-collector.ksmd - --no-collector.loadavg - --no-collector.logind - --no-collector.mdadm #- --no-collector.meminfo - --no-collector.meminfo_numa - --no-collector.mountstats - --no-collector.netdev - --no-collector.netstat - --no-collector.netclass - --no-collector.nfs - --no-collector.nfsd - --no-collector.nvme - --no-collector.os - --no-collector.powersupplyclass - --no-collector.pressure - --no-collector.rapl - --no-collector.slabinfo - --no-collector.sockstat - --no-collector.schedstat - --no-collector.selinux - --no-collector.softnet - --no-collector.stat - --no-collector.systemd - --no-collector.tapestats - --no-collector.thermal_zone - --no-collector.textfile - --no-collector.time - --no-collector.timex - --no-collector.uname - --no-collector.udp_queues - --no-collector.vmstat - --no-collector.watchdog - --no-collector.wifi - --no-collector.xfs - --no-collector.zfs - --collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($|/) gpuexporter: image: harbor.arfa.wise-paas.com/cvmt/gpuexporter:${CVMT_BUILDTAG:-latest} build: {context: ., target: gpu} restart: unless-stopped privileged: true # path in container /dev already exists in privileged mode profiles: [cv, ex] networks: [hw] runtime: nvidia volumes: - /usr/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/:ro - /usr/bin/nvidia-smi:/usr/bin/nvidia-smi:ro labels: prometheus.exporter.enable: Y prometheus.exporter.name: gpu prometheus.exporter.port: 9835 prometheus: image: harbor.arfa.wise-paas.com/cvmt/prometheus:${CVMT_BUILDTAG:-latest} build: {context: ., target: prometheus} ports: [59090:9090] # open for maintenance restart: unless-stopped profiles: [cv, ex] networks: - cv # connect to socat for service discovery via docker - hw volumes: - cv-prome:/opt/bitnami/prometheus/data