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