


Msg=”Opening storage failed” err=”open DB in /prometheus: open /prometheus/123456789: permission denied”Ĭreate a minimal Prometheus configuration file /opt/prometheus/conf/prometheus.yml: If you don’t change the ownership you may get the following error: $ sudo mkdir -p /opt/prometheus/Ĭhange the ownership of the /opt/prometheus/data directory: Install Prometheus Monitoring Using DockerĬreate directories to store Prometheus data and configuration files: How to install Docker Compose on Ubuntu, CentOS or MacOS.To run Prometheus as a Docker container, it needs to install docker and docker-compose: In the following article i will show how to install Prometheus using Docker on Ubuntu and CentOS. To visualize the collected data Prometheus can be integrated with Grafana. Prometheus can run rules over collected data to either aggregate and record new time series from existing data or generate alerts. It collects metrics from configured targets and stores them in a local time series database. It is reasonably backwards-compatible with the original LVM toolset.What is Prometheus? Prometheus is an open-source monitoring and alerting software written in Go. LVM2 refers to the userspace toolset that provide logical volume management facilities on linux.yum-utils is a collection of tools and programs for managing yum repositories, installing debug packages, source packages, extended information from repositories and administration.Check the installed Docker version: docker version.For changes to take effect logout from your instance and then log back in.Add your current user to the docker group: sudo usermod -aG docker.Start Docker daemon and enable autostartup: sudo systemctl start docker & sudo systemctl enable docker.Install the Docker: sudo yum install -y docker-ce.Install the Docker repository: sudo yum-config-manager \.Install prerequisite utility software: sudo yum install -y yum-utils \.Remove the old version of the Docker from the machine: sudo yum remove -y docker \.To check the version of the CentOS machine use: cat /etc/centos-release.
