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
- MYSQL
- 안드로이드
- MacOS
- 파이썬
- alb
- PostgreSQL
- flutter
- AWS
- selenium
- nginx
- Passport
- OAuth
- window
- 해시키
- node
- Android
- Cordova
- https
- Vue
- Laravel
- SSH
- pip
- 구글 API
- mac
- php
- Prometheus
- ubuntu
- FCM
- python
- Vue.js
Archives
- Today
- Total
print( sjw.iq == 200) output : true
[postgres_exporter] 설치 및 셋팅 본문
728x90
반응형
설치.
sudo apt-get -y install prometheus-postgres-exporter
실행.
systemctl start prometheus-postgres-exporter
/etc/prometheus/prometheus.yml 수정
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
scrape_timeout: 5s
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9090']
# - job_name: node
# If prometheus-node-exporter is installed, grab stats about the local
# machine by default.
# static_configs:
# - targets: ['localhost:9100']
- job_name: 'pgexporter'
static_configs:
- targets: ['localhost:9187']
prometheus 재실행.
sudo systemctl restart prometheus
## data source 설정
/etc/default/prometheus-postgres-exporter 파일
728x90
반응형
Comments