Docker runs prometheus

  prometheus

Pull mirror

docker pull prom/prometheus:latest

run

docker run -p 9090:9090 \
-v /tmp/prometheus-data:/prometheus-data \
prom/prometheus

If you want to map a configuration file

docker run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \
       -v /tmp/prometheus-data:/prometheus-data \
       prom/prometheus

Access

http://192.168.99.100:9090/graph
图片描述

Calculation examples, indicators can be fromhttp://192.168.99.100:9090/me …Looking for

prometheus_target_interval_length_seconds{quantile="0.99"}

Or ..

count(prometheus_target_interval_length_seconds)

图片描述

View graphics
图片描述

doc