흔자
article thumbnail
반응형

지난 포스팅에 이어 두 번째 내용입니다.

 

[이더리움] Grafana와 Prometheus로 geth 모니터링 하기 - 1

geth healthcheck나 모니터링을 할 수 있는 툴에 대해서 알아보던 중 Grafana라는 모니터링 툴에 대해 알게 되었다. CPU, Memory, 트래픽과 Latest Block Header도 실시간으로 확인할 수 있어 geth를 모니터링하려

heun.tistory.com


대시보드 세팅하기

Grafana 브라우저 접속하기

로컬 브라우저에서 http://localhost:3000 또는 http://:3000을 연다. </your validator's ip address>

초기 아이디와 비밀번호는 admin으로 설정되어 있다.

 

 

Prometheus 설정하기

Configuration gear 아이콘을 누르고 우측 상단에 있는 Add data source 버튼을 누른다.

Configuration gear

 

 

Add data source

 

 

Add data source 버튼을 누르고 난 후에 다음과 같은 화면이 나오면 Prometheus를 선택한다.

Prometheus 선택

 

HTTP URL 입력 부분에 http://localhost:9090 혹은 Prometheus를 실행 중인 IP를 써준다.

입력 완료 후에 하단에 SAVE & TEST버튼을 눌러 설정을 완료해준다.

 

 

Dashboard 설정

geth dashboard.json 파일을 import 하기 위해 다운로드한다. 

 

dashboard.json 다운로드
 

Geth + Prometheus + Grafana

Geth + Prometheus + Grafana. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

 

다운로드 완료 후에 Dashobards > import를 눌러준다.

Dashboards > import

 

Upload JSON file에 다운로드한 dashboard.json 파일을 import 해준다.

 

정상 import 화면

 

 

정상적인 동작 화면

반응형
profile

흔자

@heun_n

즐겁게 개발하고 싶은 사람입니다.