–config.file /etc/prometheus/prometheus.yml \ # chown prometheus.prometheus /etc/prometheus/prometheus.yml # sudo chown -R prometheus:prometheus /etc/prometheus/console_librariesĬhange the ownership of yml file to Prometheus. # sudo chown -R prometheus:prometheus /etc/prometheus/consoles # sudo cp -r prometheus-files/console_libraries /etc/prometheus # sudo cp -r prometheus-files/consoles /etc/prometheus # sudo chown prometheus:prometheus /usr/local/bin/promtool # sudo chown prometheus:prometheus /usr/local/bin/prometheus # sudo cp prometheus-files/promtool /usr/local/bin/ # sudo cp prometheus-files/prometheus /usr/local/bin/ # sudo chown prometheus:prometheus /var/lib/prometheusĬopy all the Prometheus files to the user binary directory and give permissions using this command below: # sudo chown prometheus:prometheus /etc/prometheus # sudo useradd –no-create-home –shell /bin/false prometheus For this we need to create a user and directory first and then set the ownership to Prometheus. The Prometheus needs to be configured for use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |