Run Prometheus in Docker (#26699)
* Run Prometheus in Docker * Update and rename Run Prometheus in Docker to guide/english/docker/prometheus/index.mdpull/21433/head^2
parent
d2b62307f5
commit
a0fd7e73cd
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
title: Prometheus
|
||||
---
|
||||
|
||||
## Prometheus with Docker
|
||||
|
||||
Prometheus is a time-series database and monitoring solution.
|
||||
|
||||
|
||||
### Run Prometheus in Docker
|
||||
|
||||
#### Define a Docker compose
|
||||
```
|
||||
version: "3"
|
||||
services:
|
||||
prometheus:
|
||||
image: quay.io/prometheus/prometheus:latest
|
||||
ports:
|
||||
- 9090:9090
|
||||
```
|
||||
|
||||
#### Deploy the stack file:
|
||||
```
|
||||
run docker swarm init
|
||||
run docker stack deploy monitoring --compose-file=./docker-compose.yml
|
||||
```
|
||||
Nabigate to: http://locahost:9090 to view the UI.
|
Loading…
Reference in New Issue