stefanscherer/prometheus-windows

By stefanscherer

Updated over 8 years ago

Prometheus in a Windows container

Image
1

50K+

stefanscherer/prometheus-windows repository overview

Prometheus in a Windows container

Prometheus is a systems and service monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.

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.

Tag summary

Content type

Image

Digest

Size

412.1 MB

Last updated

over 8 years ago

docker pull stefanscherer/prometheus-windows