docker pull prom/prometheus:latest
docker run -p 9090:9090 \ -v /tmp/prometheus-data:/prometheus-data \ prom/prometheus
若是要映射配置文件docker
docker run -p 9090:9090 -v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \ -v /tmp/prometheus-data:/prometheus-data \ prom/prometheus
http://192.168.99.100:9090/graph
express
計算實例,指標能夠從http://192.168.99.100:9090/me...中找spa
prometheus_target_interval_length_seconds{quantile="0.99"}
或者code
count(prometheus_target_interval_length_seconds)
查看圖形
blog