5. prometheus ui

source-code : https://github.com/teamsmiley/devops-public/tree/main/monitoring/4.grafana-portable-dashboard

url

http://localhost:9090/

target

모니터링 하고자 하는 대상을 우리는 prometheus.yaml에 추가를 했다. https://github.com/teamsmiley/devops-public/blob/main/monitoring/4.grafana-portable-dashboard/prometheus/prometheus.yaml

이것들이 target이라는 메뉴에 나와야한다.

Alt text

메트릭을 가져올수 있으면 target이 파란색으로 잘 보인다. 빨간색은 에러가 있다는 뜻이므로 확인해봐야한다.

graph 메뉴

Alt text

기본적으로 위 화면과 같다.

표시한 부분을 누르면 현재 prometheus가 가지고 있는 모든 메트릭들이 나온다.

검색도 가능하다.

Alt text

promql을 이용하여 쿼리를 보낼수도 있다

Alt text

promql이 맞는지 확인할수 있다.

Alt text

Add panel을 누르면 새로운 패널을 추가할수 있다.

Alt text

쿼리에 대한 그래프도 볼수 있다.

Alt text

alert manager를 사용하는경우 이곳에서 확인할수 있다.

Alt text

command line flag

prometheus는 많은 옵션을 가지고 있다. 현재 적용된 상태를 확인해야할때가 있다.

http://localhost:9090/flags

Alt text

이걸 보면 많은것을 확인할수 있다.

service discovery

Alt text

이 메뉴을 통해 prometheus가 발견한 서비스를 확인할수 있다.

Last updated

Was this helpful?