Docker Swarm Nodes

Dashboard

Docker Swarm nodes metrics
Last updated: 2 years ago

Downloads: 422

Reviews: 0

  • swarm_node.png
    swarm_node.png

This relies on data from both node_exporter and dockerd-exporter.

Filter by node name instead of node_id.

Using swarm prom-node-exporter as a base, with the updated node_exporter binary from 0.16.0. 15 to 16 changes several stat names which are redefined.

FROM stefanprodan/swarmprom-node-exporter:v0.15.2 as BASE
FROM prom/node-exporter:v0.16.0

COPY --from=BASE /etc/node-exporter/docker-entrypoint.sh /etc/node-exporter/docker-entrypoint.sh

USER root
RUN chown nobody:wheel /etc/node-exporter
USER nobody

ENTRYPOINT  [ "/etc/node-exporter/docker-entrypoint.sh" ]
CMD [ "/bin/node_exporter" ]

Collector Configuration Details

Based on dashboard found: https://github.com/stefanprodan/swarmprom/blob/0f4d40ee90f672b17aa24d5c6e119eed69aa9302/grafana/dashboards/swarmprom-nodes-dash.json

This uses node-exporter version 0.16. The above is based on 0.15