Prometheus exporter setup

Prometheus is modern monitoring and alerting solution.

In order to observe your system, you should setup exporter to export metrics over dedicated HTTP port.

The exporter can be either built-in into custom application (like etcd, kube-apiserver does), or it can be external one. There are some pre-made exporters for common operation systems metrics - WMI exporter for Windows related metrics and Node exporter for Linux based machines

Windows WMI exporter
  • Download the appropriate exporter version MSI (64bit version)
  • Setup the exporter install the MSI file by:
    msiexec /i wmi-exporter-0.3.3-amd64.msi
  • To export VMWare agent metrics, use instead:
    msiexec /i wmi_exporter-0.3.3-amd64.msi ENABLED_COLLECTORS=cpu,cs,logical_disk,net,os,service,system,vmware
  • Check the exporter is running by checking TCP port 9182 - http://127.0.0.1:9182/metrics/ (replace 127.0.0.1 by machine IP address)
  • Check the exporter service is autostarted (look for wmi_exporter in Services)
Linux node exporter
  • Download the appropriate node exporter (CentOS 7 64bit. RPM)
  • Install the RPM file
    yum install ./prometheus-node-exporter-0.16.0-5.x86_64.rpm
  • Customize exporter HTTP address in /etc/sysconfig/prometheus-node-exporter.
    Replace LISTEN_ON line by LISTEN_ON="0.0.0.0:9100" to listen on all available interfaces
  • Start the exporter by systemctl start prometheus-node-exporter
  • Make sure the exporter is autostarted systemctl enable prometheus-node-exporter
  • Make sure the exporter is started systemctl status prometheus-node-exporter
  • Check the exporter is running by checking TCP port 9100 - http://127.0.0.1:9100/metrics/ (replace 127.0.0.1 by machine IP address)

wf tech, s.r.o · IČ: 06886841 · Huťská 229, Kladno, 27201