Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
bgColor#DEEBFF

curl YOURVMIP:9090/api/v1/targets

Gateway node exporter configuration

Starting Swarm 15.3, the gateway dashboard require you to run the node_exporter service on the gateways.

The systemd service must be configured to listen on port 9095 , because the default port 9100 is used by the gateway metrics component.

Make sure to put the node_exporter golang binary in the /usr/local/bin directory.

Example systemd config file for the node exporter

Code Block
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target

[Service]
User=root
Group=root
Type=simple
ExecStart=/usr/local/bin/node_exporter --web.listen-address=:9095 --collector.diskstats.ignored-devices=^(ram|loop|fd|(h|s|v|xv)d[a-z])\\d+$ --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|var/lib/docker)($|/) --collector.filesystem.ignored-fs-types=^/(autofs|binfmt_misc|cgroup|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|mqueue|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|sysfs|tracefs)($|/) --collector.meminfo_numa --collector.ntp --collector.processes --collector.tcpstat --no-collector.nfs --no-collector.nfsd --no-collector.xfs --no-collector.zfs --no-collector.infiniband --no-collector.vmstat --no-collector.textfile --collector.conntrack --collector.qdisc --collector.netclass

[Install]
WantedBy=multi-user.target

enable and configure the service

Panel
bgColor#DEEBFF

systemctl enable node_exporter

systemctl start node_exporter

SCS node exporter configuration

Starting Swarm 15.3 SCS requires the node_exporter service to monitor partition capacity information which is exposed at the end of the Swarm Node View dashboard.

Use the same systemd script provided by the gateway , but here you must use the default listen port of 9100, SCS 1.5.1 has been modified to add a firewall rule for port 9100 on the swarm storage network,

Make sure to put the node_exporter golang binary in the /usr/local/bin directory.

enable and configure the service

Panel
bgColor#DEEBFF

systemctl enable node_exporter

systemctl start node_exporter

Elasticsearch exporter configuration

...