Prometheus server is the center of the monitoring solution. It is responsible for:
- Scraping metrics from exporters and Pushgateway;
- Supporting queries through PromQL;
- Triggering alerts to Alertmanager;
- ...
Let's deploy a Prometheus server:
- Download the latest tarball (we use Linux) from the download page;
- Decompress the pacakge and change into the directory;
- The configuration file is prometheus.yml, there is no need to change it for now since no export has been deployed;
- Kick started Prometheus ./prometheus;
- We should be able to access it through http://<Prometheus Server IP>:9090.
After getting a Prometheus server running, we can move forward deploying exporters and scraping metrics from them.
Prometheus is easy and straightforward, but it stills need some reading work if you want to use it flexible. Here are some documents you should go through when there is enough bandwidht: