Infrastructure Monitoring
Server Metrics to KloudMate
Server Metrics to KloudMate Using Prometheus Node Exporter
8 min
this document provides a guide on how to send metrics from amazon ec2 instances, azure vms, or on premise servers to kloudmate using prometheus node exporter and kloudmate agents in this setup, the node exporter is responsible for exposing a wide range of hardware and kernel level metrics these metrics are then collected and forwarded to the kloudmate backend by the kloudmate agent, which includes a built in prometheus receiver to scrape and ingest node exporter data node exporter configuration for linux distributions step 1 prerequisites ensure that port 9100 is open and accessible for the successful export of metrics verify if there are any additional layers of security, such as an application layer firewall, in place step 2 configure node exporter for linux distributions use the following command to download and extract the node exporter wget https //github com/prometheus/node exporter/releases/download/v /node exporter amd64 tar gz tar xvfz node exporter amd64 tar gz cd node exporter amd64 add user as node exporter and create a service to run sudo mv node exporter /usr/local/bin/ sudo useradd rs /bin/false node exporter sudo nano /etc/systemd/system/node exporter service \[unit] description=node exporter service after=network target \[service] user=node exporter group=node exporter type=simple execstart=/usr/local/bin/node exporter \[install] wantedby=multi user target enable and start the exporter to send node metrics to the backend sudo systemctl daemon reload sudo systemctl enable node exporter sudo systemctl start node exporter	 sudo systemctl status node exporter verify whether that the metrics are being successfully exported curl localhost 9100 node exporter for windows server step 1 prerequisites ensure that port 9182 is open and accessible for the successful export of metrics step 2 download the latest release of windows exporter from https //github com/prometheus community/windows exporter https //github com/prometheus community/windows exporter/releases/download/v /windows exporter msi install the downloaded file on your windows server by double clicking on it and following the installation prompts once the installation is complete, the windows node exporter will be automatically added and started as a service to test the windows node exporter, open a web browser and enter \<public ip> 9182 in the address bar replace \<public ip> with the actual public ip address of your windows server this will browse the exposed metrics on port 9182 please note that the instructions assume that the installation process is straightforward and does not require any additional configuration steps after the metrics are successfully exported, the kloudmate agent is responsible for scraping these metrics from the node exporter and transmitting them to kloudmate for further analysis and processing opentelemetry configuration to send metrics to kloudmate step 1 add the node exporter path as target under prometheus receiver receivers prometheus config scrape configs \ job name 'node exporter' scrape interval 30s static configs \ targets \['localhost 9100'] processors batch send batch size 5000 timeout 10s step 2 configure the exporter of the opentelemetry collector to connect to kloudmate exporters otlphttp endpoint 'https //otel kloudmate com 4318' headers authorization xxxxxxxxxxxxxxxxxx pipelines metrics receivers \[prometheus] processors \[batch] exporters \[otlphttp] step 3 execute the provided command to restart and verify the status of the kloudmate agent subsequently, monitor the metrics on the kloudmate dashboard additionally, configure an alarm in kloudmate to receive notifications when cpu utilization for a specific application rises systemctl restart kmagent systemctl status kmagent