til/Development/prometheus.md

37 lines
465 B
Markdown
Raw Normal View History

2020-04-18 20:21:04 +00:00
# Prometheus
Read [Getting started](https://prometheus.io/docs/prometheus/latest/getting_started/).
2020-05-09 13:59:17 +00:00
Docker:
2020-04-18 20:21:04 +00:00
```sh
2020-05-09 13:59:17 +00:00
docker run -d \
-p 9090:9090 \
-v /path/to/config:/etc/prometheus \
prom/prometheus
2020-04-18 20:21:04 +00:00
```
UI:
```txt
2020-05-09 13:59:17 +00:00
localhost:9090
```
Metrics:
```txt
localhost:9090/metrics
```
## Pushing metrics
Read [Pushing metrics](https://prometheus.io/docs/instrumenting/pushing/)
Docker:
```sh
docker run -d \
-p 9091:9091 \
prom/pushgateway
2020-04-18 20:21:04 +00:00
```