This commit is contained in:
2023-02-07 13:15:40 +01:00
parent 6886e0b1a1
commit d5a34436f9
12 changed files with 363 additions and 263 deletions

View File

@ -0,0 +1,11 @@
#!/bin/sh -e
NODE_NAME=$(cat /etc/nodename)
mkdir -p /etc/node-exporter
echo "node_meta{node_id=\"$NODE_ID\", container_label_com_docker_swarm_node_id=\"$NODE_ID\", node_name=\"$NODE_NAME\"} 1" > /etc/node-exporter/node-meta.prom
set -- /bin/node_exporter "$@"
exec "$@"