Prometheus is an open-source monitoring system and time series database that collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts when specified conditions are observed.
This Prometheus distribution is provided by the Sourcemation packaging team, built on a secure Debian 13 Slim base image with version 3.5.0.
Run a temporary container with Prometheus:
docker run --rm -it -p 9090:9090 sourcemation/prometheus:latest
The Prometheus web interface will be available at http://localhost:9090.
Run Prometheus with persistent storage:
docker run -d --name prometheus \
-p 9090:9090 \
-v /path/to/your/data:/prometheus \
sourcemation/prometheus:latest
Run with custom configuration file:
docker run -d --name prometheus \
-p 9090:9090 \
-v /path/to/your/prometheus.yml:/etc/prometheus/prometheus.yml \
-v /path/to/your/data:/prometheus \
sourcemation/prometheus:latest
Run with additional command line arguments:
docker run -d --name prometheus \
-p 9090:9090 \
-v /path/to/your/data:/prometheus \
sourcemation/prometheus:latest \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/prometheus \
--web.console.libraries=/usr/share/prometheus/console_libraries \
--web.console.templates=/usr/share/prometheus/consoles \
--storage.tsdb.retention.time=15d \
--web.enable-lifecycle
This image uses the following environment variables:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
This image exposes the following ports:
Please note that the ports need to be either manually forwarded with the -p option or let Docker choose some for you with the -P option.
The container includes a default prometheus.yml configuration file located at /etc/prometheus/prometheus.yml. You can override this by mounting your own configuration file to this path.
This image runs as the nobody user (non-root) for enhanced security. The data directory /prometheus is writable by the nobody group.
We'd love for you to contribute! You can request new features, report bugs, or submit a pull request with your contribution to this image on the Sourcemation GitHub repository.
Disclaimer: The sourcemation/prometheus image is not affiliated with the Prometheus project. The respective companies and organisations own the trademarks mentioned in the offering. The sourcemation/prometheus image is a separate project and is maintained by Sourcemation.
A detailed risk analysis report of the image and its components can be found on the Sourcemation platform.
For more information, check out the overview of Prometheus page.
The base license for the solution (Prometheus) is the Apache License 2.0. The licenses for each component shipped as part of this image can be found on the image's appropriate Sourcemation entry.
Content type
Image
Digest
sha256:b521730e9…
Size
140.4 MB
Last updated
4 days ago
docker pull sourcemation/prometheus