Monitoring Using Prometheus Agents
Monitoring using various Prometheus Agents
Depending on which OS, the application running, install Prometheus agent by using respective OS agent.
Installation
a) Node Exporter Installation on Linux:
Step 1: Download Prometheus agent from url
wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gzStep 2: Extract tar file
tar -zxf node_exporter-0.18.1.linux-amd64.tar.gzStep 3: Navigate to the directory
cd node_exporter-0.18.1.linux-amd64
cp node_exporter /usr/local/bin/Step 4: Update node_exporter.service by navigating the folder as shown below
vi /etc/systemd/system/node_exporter.service[Unit]
Description=Node Exporter
After=network.target
[Service]
User=root
Group=root
Type=simple
ExecStart=/usr/local/bin/node_exporter --collector.bcache --collector.bonding --collector.conntrack --collector.cpu --collector.cpufreq --collector.diskstats --collector.drbd --collector.edac --collector.entropy --collector.filefd --collector.filesystem --collector.hwmon --collector.infiniband --collector.interrupts --collector.ipvs --collector.ksmd --collector.loadavg --collector.logind --collector.mdadm --collector.meminfo --collector.meminfo_numa --collector.mountstats --collector.netclass --collector.netdev --collector.netstat --collector.nfs --collector.nfsd --collector.ntp --collector.pressure --collector.processes --collector.qdisc --collector.runit --collector.sockstat --collector.stat --collector.supervisord --collector.systemd --collector.tcpstat --collector.time --collector.timex --collector.uname --collector.filesystem.ignored-mount-points="" --collector.perf --collector.diskstats.ignored-devices=""
[Install]
WantedBy=multi-user.targetStep 5: Provision as Linux Service
Step 6: Update firewall ports and restart firewall service
b) Prometheus Exporter for RabbitMQ Installation on Linux
Check Prometheus exporter for RabbitMQ metrics https://github.com/kbudde/rabbitmq_exporter/releases/tag/v1.0.0-RC6
Step1: Download agent
Step 2: Extract rar file
Step 3: Navigate to the directory
Step 4: Copy rabbimq_exporter to /usr/local.bin
Step 5: Open rabbtmq_exporter.service for editing and update the properties including port number
Step 6: Provision as linux service and update firewall rules
Step 7: Update firewall ports and reload service
c) Process Exporter
Please click here for more information on process exporter https://github.com/ncabatoff/process-exporter.
Step 1: Download agent
Step 2: Extract the file
Step 3: open all.yaml file and update the process names.
Step 4: Provision as Linux service
Step 5: Update firewalls and ports. Default port is 9256
d) Prometheus exporter for windows machines using WMI.
Step 1: Download the msi file
Step 2: Open powershell and execute the following commands. Please note the commands differ for windows, IIS, MSSQL, etc and are mentioned below as sub-steps
Step 2a: For Windows Only
Step 2b: For IIS only
Step 2c: For MSSQL
Step 2d: For all-in one VM
Step 3: You need to enable the respective port in firewall.
Note: We cannot run multiple wmi_exporter in single vm, before executing the command, please check if it needs to be enabled for IIS and MSSql etc.
e) Prometheus Exporter for Oracle on Linux
Please refer the exporter at Github: https://github.com/iamseth/oracledb_exporter
Step 1: In order to run, you'll need the Oracle Instant Client Basic for your operating system. Only the basic version is required for execution.
Link for Oracle Instant Client Basic: https://www.oracle.com/database/technologies/instant-client/downloads.html.
Select the zip file based on your os type and download the Basic Package (ZIP) Version 18.5.0.0.0 (any zip file in this version) download zip file. At the end of the page, you will have will have steps to how to Installation of ZIP files. Follow those steps carefully.
Step 2: Download the Oracle db exporter agent
Step 3: Extract the file
Step 4: Enable firewall ports, 9162 is the default port
Step 5: Additional information, set the following paths as an example
Last updated