Prometheus
를 다운로드한 폴더에서 prometheus.yml
파일을 다음과 같이 수정한다.prometheus.yml
...
(생략)
static_configs:
- targets: ["localhost:7890"]
(targets
에 jmx-exporter
에서 metric
을 추출한 "host:port"를 입력)
prometheus.exe
를 실행하여 서버를 구동한다.http://localhost:9090
으로 접속 후 metric
을 수집하고 있는 대상 시스템 목록을 확인한다.prometheus.yml
에서 등록한 metric
을 수집하고있는 대상 시스템의 endpoint
들을 확인할 수 있으며 state
가 up
인 경우에 정상적으로 수집하고 있는 것 이다.이제 다음장에서 Grafana를 활용해서 metric
을 시각화 해보자.