Then, we will set it up to monitor two types of metrics — metrics of our current system (such as load average and free memory) using node_exporter, and metrics of the Prometheus server itself. This is a highly atypical setup — usually you would monitor other Prometheus instances or other machines. Well, the time has come to gain a better understanding of module.exports and exports in Node.js. Here’s what I have learned. Note: this post covers using modules in Node.
During node registration, the master receives the node IP addresses from the DNS configuration, and therefore accessing nodes via DNS is the most flexible solution for most deployments. If your deployment is using a cloud provider, then the node gets the IP information from the cloud provider. Additionally, to have an overview of cluster nodes' resources the Prometheus node_exporter is used. The node_exporter allows monitoring a node's resources: CPU, memory and disk utilization and more. The node_exporter allows monitoring a node's resources: CPU, memory and disk utilization and more.