In the previous two recipes, we have seen the steps involved in installing Grafana to visualize the metrics and Prometheus to store the metrics. In this recipe, we shall discuss an exporter that can collect some kernel-level diagnostic data from a PostgreSQL server and store it in a Prometheus database.
Node Exporter is an open source exporter that exposes a wide variety of operating system kernel-level metrics, such as CPU, memory, storage, I/O, and so on. It needs to run on each PostgreSQL server being monitored, if interested in operating system-level metrics. In this recipe, we shall see how node_exporter can be configured to expose operating system kernel-level information.
Getting ready
In order to use node_exporter following the steps discussed in this recipe, we should have a PostgreSQL server running on a Linux operating system. The port being used by Node Exporter to expose the operating system...