Open source monitoring tool
In this section, we will mainly discuss the tools that are owned by a third party and collect the metrics of the server to troubleshoot application issues.
Prometheus
Prometheus (https://prometheus.io) is an open source monitoring solution that keeps track of your system activity metrics and alerts you instantly if there are any actions required from your side. This tool is written in Golang.
This tool is gaining popularity similar to tools such as Nagios. It collects the metrics of the server, but it also provides you with template metrics, such as http_request_duration_microseconds
, based on your requirement, so that you can generate a graph out of it using UI to understand it much better and monitor it with efficiency.
Note
Note that, by default, Prometheus runs on the9090
port.
To install Prometheus, follow the instructions provided on the official website (https://prometheus.io/docs/introduction/getting_started/). Once it is installed and the service is up, try...