Files for building Docker container to run Prometheus time series database.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles Reid d9c5ef8b64 Add working prometheus run script, and netdata yml 7 years ago
config Add working prometheus run script, and netdata yml 7 years ago
LICENSE Adding MIT license 7 years ago
README.md Add working prometheus run script, and netdata yml 7 years ago
run_stock_prometheus.sh Add working prometheus run script, and netdata yml 7 years ago

README.md

d-prometheus

Prometheus is a time series database.

This repo contains files for creating and running a Docker container for Prometheus.

Run the docker image

See dockerhub prometheus.

./run_stock_prometheus.sh

Prometheus has a web interface available on port 9090.

Using custom Prometheus config

See prometheus repo for an example prometheus.yml config file.

Prometheus expets a prometheus.yml file to be in /etc/prometheus/prometheus.yml inside the container.

To use a custom prometheus.yml config file, there are two options:

Bind mount the file prometheus.yml in the container using the -v flag:

docker run \
        -p 9090:9090 
        -v ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml \
        prom/prometheus

Bind a host directory to a container directory using the -v flag, and point to the config file with a --config.file flag:

docker run \
        -p 9090:9090 \
        -v ${PWD}/prometheus-data:/prometheus-data \
        prom/prometheus \
        --config.file=/prometheus-data/prometheus.yml

Netdata-Prometheus config