+
This commit is contained in:
@ -7,6 +7,12 @@ https://github.com/prometheus-community/postgres_exporter
|
||||
ssh igor@ccalm.org -p 2200
|
||||
```
|
||||
|
||||
Configure postgresql.conf
|
||||
```conf
|
||||
shared_preload_libraries = 'pg_stat_statements'
|
||||
pg_stat_statements.track = all
|
||||
```
|
||||
|
||||
## 1. Установка Docker и Docker Compose
|
||||
Если Docker не установлен, установим его:
|
||||
```sh
|
||||
|
||||
@ -1,14 +1,7 @@
|
||||
****************************************************************************************************
|
||||
Установка и настройка проверялщика паролей credcheck
|
||||
Установка и настройка проверяльщик паролей credcheck
|
||||
PostgreSQL https://www.postgresql.org/about/news/credcheck-v200-released-2654/
|
||||
|
||||
Подключаемся к инфраструктуре потом подключаюсь к нужной машине:
|
||||
```sh
|
||||
ssh ivanov.i@10.201.1.6 -p 22
|
||||
```
|
||||
```sh
|
||||
ssh administrator@10.201.1.6 -p 22
|
||||
```
|
||||
Тестовая база
|
||||
```sh
|
||||
ssh administrator@10.201.3.36 -p 22
|
||||
|
||||
@ -3777,6 +3777,9 @@ WantedBy=multi-user.target
|
||||
sudo systemctl start prometheus
|
||||
sudo systemctl enable prometheus
|
||||
sudo systemctl status prometheus
|
||||
```sh
|
||||
sudo systemctl restart prometheus
|
||||
```
|
||||
|
||||
Пробуем открыть по адресу:
|
||||
http://192.168.200.84:9090
|
||||
@ -3851,7 +3854,9 @@ WantedBy=multi-user.target
|
||||
- targets: ['localhost:9100']
|
||||
|
||||
Перезагружаем prometheus чтобы он начал собирать метрики
|
||||
```sh
|
||||
sudo systemctl restart prometheus
|
||||
```
|
||||
|
||||
Смотрим:
|
||||
http://192.168.200.84:9090/targets
|
||||
|
||||
Reference in New Issue
Block a user