Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.54 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.54 KB

prometheus

This image on DockerHub

PowerShell

The command line options with a dot need to be quoted in PowerShell:

mkdir C:\prom
copy prometheus.yml C:\prom\prometheus.yml
docker container run -d -p 9090:9090 `
  -v "C:\prom\data:C:\prometheus" -v "C:\prom:C:\config" `
  stefanscherer/prometheus-windows '--config.file=/config/prom.yml' `
  '--storage.local.path=/prometheus' `
  '--web.console.libraries=/etc/prometheus/console_libraries' `
  '--web.console.templates=/etc/prometheus/consoles'

bash

From my Mac:

$ mkdir -p data
$ docker run -d -p 9090:9090 \
  -v C:$(pwd)/data:C:/prometheus -v C:$(pwd):C:/config \
  stefanscherer/prometheus-windows --config.file=/config/prometheus.yml \
  --storage.local.path=/prometheus \
  --web.console.libraries=/etc/prometheus/console_libraries \
  --web.console.templates=/etc/prometheus/consoles
$ open http://$(docker-machine ip windows):9090

See the Getting started guide to learn more about Prometheus.

See the script start-prometheus.ps1 and prom.yml to activate the Docker Metrics API and run Prometheus collecting it.

Build

Windows Server 2016

docker build -t prom .