Now let’s configure the node_exporter in such a way that it will communicate with the Prometheus server to export the required metrics. But for verifying, run the following command to know whether the node_exporter is running or not. The advantage of using the apt repo is, we don’t have to configure the service as we did for the installing Prometheus server. STEP 2: Install node_exporter using apt repo sudo apt-get install prometheus-node-exporter STEP 1: Update the apt repo sudo apt-get update Now, let’s see how to install node_exporter in the following steps. Node_exporter is one of the Prometheus utility that will be installed on every target server which we need to be monitored. Now we need to send metrics of the target servers to Prometheus. We have our Prometheus Server up and running. You can check the installation from the port number 9090 ( Prometheus node_exporter Installation. Then we need to enable the Prometheus process Now we just need to restart the systemctl daemon process STEP 5: Create Prometheus daemon process.Ĭreate a Unit file sudo nano /etc/systemd/system/rviceĮxecStart=/usr/local/bin/prometheus -config.file=/etc/prometheus.yml This file will be modified later after the node_exporter Installation mv prometheus-2.25.0.linux-amd64/Prometheus/prometheus.yml /etc/ STEP 4: Configure the Prometheus Configuration file in etc folder. mv prometheus-2.25.0.linux-amd64/prometheus /usr/local/bin/ STEP 3: Move all the binary files to bin folder. If you need to have different versions download it from the distribution list. STEP 1: Download the Prometheus using wget command. Otherwise, simply follow the following steps to install the Prometheus. As the first step, download the tar file which contains the Prometheus binary executable that can be moved directly to the binary folder. Prometheus provides binaries to install on various platforms. Grafana Installation and Configuration.So, As the Plan of action, we will see the following steps to accomplish this. Then, Grafana will pull data from Prometheus and have dashboards. Then it will send it to the Prometheus Server. This will connect all kernel and node-level metrics like disk space, memory, CPU, and more. Server Monitoring Using Prometheus and GrafanaĪs mentioned in the figure, the target server which is the server we need to be monitored should be installed with the piece of so software called Prometheus node_exporter.
0 Comments
Leave a Reply. |