May 2019
Intermediate to advanced
442 pages
11h 36m
English
With the newly created instance running, it's time to log in using the following command:
vagrant ssh prometheus
We can validate the startup configuration in use by looking into its systemd unit file by using the following command:
cat /etc/systemd/system/prometheus.service
The following excerpt shows the flags that are currently in place:
ExecStart=/usr/bin/prometheus \ --config.file=/etc/prometheus/prometheus.yml \ --storage.tsdb.path=/var/lib/prometheus/data \ --web.console.templates=/usr/share/prometheus/consoles \ --web.console.libraries=/usr/share/prometheus/console_libraries
The configuration file for Prometheus itself, as defined by the --config.file flag, can be reviewed as follows:
cat /etc/prometheus/prometheus.yml ...
Read now
Unlock full access