250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- pip
- Prometheus
- SSH
- Vue.js
- nginx
- selenium
- PostgreSQL
- OAuth
- php
- FCM
- 구글 API
- Laravel
- flutter
- python
- Vue
- node
- mac
- window
- alb
- ubuntu
- https
- 안드로이드
- Android
- AWS
- MacOS
- Passport
- MYSQL
- Cordova
- 파이썬
- 해시키
Archives
- Today
- Total
print( sjw.iq == 200) output : true
[PMM] DB monitoring 본문
728x90
반응형
Percona Monitoring and Management (PMM)
# docker image pull
docker pull percona/pmm-server:2
docker create --volume /srv --name pmm-data percona/pmm-server:2 /bin/true
# 기본 포트 구성은 80:80 443:443 이지만,
다른 서비스가 80,443 포트를 사용중이여서 다른 포트로 변경하였다.
docker run -d \
-p 8090:80 \
-p 4443:443 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
percona/pmm-server:2
pmm-client 설치.
https://www.percona.com/software/pmm/quickstart
Percona Monitoring and Management - Percona
curl -fsSL https://www.percona.com/get/pmm | /bin/bash When the installation finishes, information on how to access the interface will display along with the default credentials.
www.percona.com
postgresql 에서 pg_monitor 권한부여
GRANT pg_monitor to pmm
CREATE EXTENSION pg_stat_statements
postgresql.conf 파일에 아래 내용 추가.
shared_preload_libraries = 'pg_stat_statements'
postgresql service 설정.
sudo pmm-admin config --server-insecure-tls --server-url=https://admin:password@localhost:4443
sudo pmm-admin add postgresql --query-source=pgstatements --username=pmm --password=pmm postgres 127.0.0.1:5432
728x90
반응형
'Mornitoring' 카테고리의 다른 글
[Prometheus] 설치 (Ubuntu) (0) | 2023.02.16 |
---|---|
[Grafana] 설치 (Ubuntu) (0) | 2023.02.16 |
Comments