FIX formating
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 20s

This commit is contained in:
Илья Макаров 2025-04-08 17:27:11 +03:00
parent 7fe8ec8db6
commit 34b8a98454

View File

@ -34,6 +34,7 @@ scrape_configs:
- targets:
- 89.22.241.241:9100
```
- `useradd -rs /bin/false prometheus` - создаём системного пользователя для работы с prometheus
- `chown prometheus:prometheus /usr/local/bin/prometheus`
- `chown -R prometheus:prometheus /etc/prometheus`
@ -57,6 +58,7 @@ ExecStart=/usr/local/bin/prometheus \
[Install]
WantedBy=multi-user.target
```
- `sudo systemctl daemon-reload` - обновить systemd
- `sudo systemctl start prometheus`
- `sudo systemctl enable prometheus`
@ -78,6 +80,7 @@ ExecStart=/usr/local/bin/prometheus \
!!! tip "Если на сервере нет Nginx"
`certbot certonly --standalone -d prometheus.mcarov.pro`
- Добавить Серт и Ключ в `web-config.yml`
```
tls_server_config: