Versions Compared


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

Table of Contents

Prometheus is the open source monitoring system and time series database. WCS supports Prometheus metric format since build 5.2.416, no WCS setup is needed to integrate with Prometheus monitoring.

WCS metrics collection 

To set up Prometheus to collect WCS metrics, the following scrape configuration should be described in prometheus.yml


Code Block

Server instance metrics collection

Server instance on which WCS is installed operating system metrics can be collected to Prometheus using Prometheus Node Exporter module. To install the module, use the following script

Code Block
titlePrometheus Node Exporter install script
tar zxvf node_exporter-*.linux-amd64.tar.gz
cd node_exporter-*.linux-amd64
cp node_exporter /usr/local/bin/
sudo useradd --no-create-home --shell /bin/false nodeusr
sudo chown -R nodeusr:nodeusr /usr/local/bin/node_exporter

echo "[Unit]" >> /etc/systemd/system/node_exporter.service
echo "Description=Node Exporter Service ">> /etc/systemd/system/node_exporter.service
echo "" >> /etc/systemd/system/node_exporter.service
echo "" >> /etc/systemd/system/node_exporter.service
echo "[Service]" >> /etc/systemd/system/node_exporter.service
echo "User=nodeusr" >> /etc/systemd/system/node_exporter.service
echo "Group=nodeusr" >> /etc/systemd/system/node_exporter.service
echo "Type=simple" >> /etc/systemd/system/node_exporter.service
echo "ExecStart=/usr/local/bin/node_exporter" >> /etc/systemd/system/node_exporter.service
echo "ExecReload=/bin/kill -HUP $MAINPID" >> /etc/systemd/system/node_exporter.service
echo "Restart=on-failure ">> /etc/systemd/system/node_exporter.service
echo "">> /etc/systemd/system/node_exporter.service
echo "[Install]" >> /etc/systemd/system/node_exporter.service
echo " ">> /etc/systemd/system/node_exporter.service
sudo systemctl daemon-reload
sudo systemctl enable node_exporter
sudo systemctl start node_exporter