prometheus docker build
Go to file
2021-09-19 22:03:10 +02:00
.env.dist use official prometheus repo 2021-09-19 22:03:10 +02:00
.gitignore init 2021-03-02 20:52:56 +01:00
docker-compose.yaml use official prometheus repo 2021-09-19 22:03:10 +02:00
LICENSE Initial commit 2021-03-01 11:35:55 +01:00
prometheus.yaml.dist init 2021-03-02 20:52:56 +01:00
README.md add more build/run info in README 2021-03-02 20:56:41 +01:00

docker-prometheus

prometheus docker build

build

docker-compose build or

GO_VERSION=1.16.0 # optional
PROMETHEUS_VERSION=2.25.0 # optional, will use latest available, if unset
docker \
    build \
    --build-arg GO_VERSION="${GO_VERSION}" \
    --build-arg PROMETHEUS_VERSION="${PROMETHEUS_VERSION}" \
    -t prometheus:"${PROMETHEUS_VERSION}"-local .

run

use the provided docker-compose.yml: docker-compose up -d the container assumes a systemd-enabled system and logs to journald. using docker logs prometheus or docker-compose logs still works, though.