Installation

    For building Prometheus components from source, see the targets in the respective repository.

    All Prometheus services are available as Docker images on Quay.io or .

    Running Prometheus on Docker is as simple as docker run -p 9090:9090 prom/prometheus. This starts Prometheus with a sample configuration and exposes it on port 9090.

    To provide your own configuration, there are several options. Here are two examples.

    Bind-mount your from the host by running:

    Or bind-mount the directory containing prometheus.yml onto by running:

    Custom image

    For this, create a new directory with a Prometheus configuration and a Dockerfile like this:

    Now build and run it:

    A more advanced option is to render the configuration dynamically on start with some tooling or even have a daemon update it periodically.

    Chef

    SaltStack