Server Status Monitoring

Starting from version 5.7.4, Staffcop’s server monitoring system has been replaced. Instead of InfluxDB and Telegraf, data collection is now based on a stack of Prometheus + Grafana + Node Exporter.

The system still provides administrators with a visual overview of server load. To use monitoring, please switch to the new stack.

Migration steps:

  1. Install the new monitoring stack.

  2. Make sure monitoring works and displays up-to-date data.

  3. Manually remove old tools.

Attention

Upgrading a server does not automatically remove InfluxDB and Telegraf. Please note that migrating previously collected data is not supported. All server state information will be deleted when InfluxDB and Telegraf are removed. Before removing InfluxDB and Telegraf, ensure you have fully migrated to Prometheus and no longer need any old data.

  1. If you have a custom Prometheus packet installed, delete it. If you have any questions, please contact technical support.

  2. If necessary, configure scaling to receive metrics from additional servers.

If you are still using an older server version or are only planning to upgrade, use standard systemctl commands to manage old tools:

# Checking tool status
systemctl status influxdb
systemctl status telegraf

# Checking Grafana status
systemctl status grafana-server

Monitoring System Installation

For your convenience, we’ve prepared a universal script that will automatically install all components of the monitoring system.

  1. Download the script to a computer with Grafana access and grant execution permissions:

wget https://distr.staffcop.su/docs-assets/grafana/monitoring_install.sh && chmod +x monitoring_install.sh
  1. Run the script:

sudo ./monitoring_install.sh

The script will install the following monitoring system tools:

  • Prometheus

  • Node Exporter

  • Grafana

If Grafana is already installed, the script will update it to the latest available version.

After running the script, the tools are ready to use. Check if the tools are functioning using the following commands:

systemctl status prometheus
systemctl status node-exporter
systemctl status grafana-server

Attention

By default, Prometheus stores data for 80 days. To change the retention period, edit the storage.tsdb.retention.time parameter in Systemd/etc/systemd/system/prometheus.service.

Grafana Configuration

Grafana Login

To access Grafana, open your browser and go to:

http://<your-server-ip-address>:3000

where 3000 is the port number on which Grafana is installed.

Use the following credentials:

  • login: admin

  • password: admin

Connecting Prometheus

Once you’ve logged in to Grafana, connect Prometheus as a data source.

  1. Go to ConnectionsData sources.

  2. Select + Add new data source.

  3. In the interactive menu, select Prometheus.

../_images/faq_server_monitoring_1.png
  1. In the Prometheus server URL field, enter:

http://localhost:9090
../_images/faq_server_monitoring_2.png
  1. Scroll down and select Save & test.

A green notification should appear: Successfully queried the Prometheus API. This means the connection between Grafana and Prometheus has been established.

../_images/faq_server_monitoring_3.png

Importing a Dashboard

To avoid creating charts manually, we have prepared a ready-made dashboard.

  1. Download the dashboard using the following link:

https://distr.staffcop.su/docs-assets/grafana/staffcop_node_exporter_dashboard.json
  1. In Grafana, go to Dashboard.

  2. Select NewImport.

../_images/faq_server_monitoring_4.png
  1. Upload the downloaded dashboard.

  2. Optional: change the name and folder.

  3. In the Select a Prometheus data source field, select Prometheus as the data source.

../_images/faq_server_monitoring_5.png
  1. Select Import.

The imported dashboard can now be viewed.

../_images/faq_server_monitoring_6.png

For convenience, the metrics are divided into several panels:

  • Quick View — server and tool general status

  • CPU/System — CPU load, total server load, disk usage percentage

  • Memory — amount of RAM used and OOM calls

  • Disk — disk load, IOps count, disk utilization, etc.

  • Network — network load

You can view detailed information about a metric by hovering over the i icon to the right of its name.

If you have any questions, please contact technical support.

Deleting influxDB and Telegraf

Danger

The previous server monitoring system used influxDB and Telegraf. If you were using these services and have switched to Prometheus, remove them to avoid unnecessary system load. Historical status data will be deleted.

To remove influxDB and Telegraf:

  1. Stop both tools:

sudo systemctl stop influxdb
sudo systemctl stop telegraf
  1. Remove their packets:

sudo apt-get remove --purge influxdb telegraf
  1. Delete the remaining configuration files and data directories:

sudo rm -rf /var/lib/influxdb
sudo rm -rf /etc/telegraf
  1. Remove old dashboards and influxDB datasources.

sudo rm /etc/grafana/provisioning/datasources/grafana-datasource.yaml
sudo rm /etc/grafana/provisioning/dashboards/default.yaml
sudo rm -rf /etc/grafana/provisioning/staffcop
  1. Restart Grafana:

systemctl restart grafana-server

Last Updated: 06.07.26