February 2018
Beginner
290 pages
7h 28m
English
Now that we have installed the Prometheus and also installed a node exporter, we will configure Prometheus to collect the data from the different data sources using its configuration file.
Due to the creation of the systemd file in the previous section, the Prometheus configuration will be located at /etc/prometheus/prometheus.yml.
This file has a global configuration and configuration for each of the exporters it needs to scrape through:
sudo sucat <<EOF >> /etc/prometheus/prometheus.ymlglobal: scrape_interval: 15sscrape_configs: - job_name: 'prometheus_scrape_self' scrape_interval: 5s static_configs: - targets: ...
Read now
Unlock full access