Исходный код вики Prometheus. Установка
Версия 1.1 от Alexandr Fokin на 2022/12/14 12:21
Скрыть последних авторов
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | |((( |
| 2 | |(% colspan="1" rowspan="2" style="width:151px" %)[[ Docker-Compose>>doc:Хостинг.Виртуализация.Docker.Docker-Compose.WebHome]]|(% style="width:1277px" %){{code language="yaml"}}version: "3.5" | ||
| 3 | services: | ||
| 4 | prometheus: | ||
| 5 | image: prom/prometheus:latest | ||
| 6 | command: | ||
| 7 | - "--config.file=/etc/prometheus/prometheus.yml" | ||
| 8 | - "--storage.tsdb.path=/prometheus" | ||
| 9 | - "--storage.tsdb.retention.time=7d" | ||
| 10 | volumes: | ||
| 11 | - "./prometheus.yml:/etc/prometheus/prometheus.yml" | ||
| 12 | - "./PrometheusData:/prometheus" | ||
| 13 | ports: | ||
| 14 | - "9090:9090" | ||
| 15 | user: "<user with permission to volume path>"{{/code}} | ||
| 16 | |(% style="width:1277px" %) | ||
| 17 | |(% style="width:151px" %) |(% style="width:1277px" %) | ||
| 18 | |||
| 19 | |||
| 20 | ))) | ||
| 21 | |||
| 22 |