Prometheus

sujin·2022년 9월 4일
0
post-thumbnail

😊 prometheus

prometheus ? 이벤트 모니터링 및 경고에 사용되는 무료 소프트웨어 응용 프로그램. HTTP pull 모델을 사용하여 구축 된 시계열 데이터베이스에 실시간 메트릭 기록

https://prometheus.io/

Cloud Native Computing Foundation 프로젝트로 Prometheus는 시스템 및 서비스 모니터링 시스템이다. 지정된 간격으로 구성된 대상에서 메트릭을 수집하고 규칙 표현식을 통해 평가하며 결과를 표시하고 지정된 조건이 관찰될 때 경고를 트리거 할 수 있다.

1) 특징

  • CNCF(Cloud Native Computing Foundation)에 속해있으며 Kubernetes Cluster 및 Docker 컨테이너를 손쉽게 모니터링 할 수 있다는 특징이 있다.
  • key-value 형태로 레이블을 집계
  • query는 promQL을 사용

2) 아키텍처

  • Push gateway : application이 pushgateway에 metric을 push, 이후 prometheus server가 pushgateway에 접근해 metric을 pull.
  • Exporter : metric 데이터를 수집하고 prometheus 서버가 데이터를 수집할 수 있도록 endpoint에서 metic 내용을 접근할 수 있도록함.
  • Alert manage : metric에 대한 지표를 걸어놓고 규칙을 위반하는 사항에 대해서 알람을 전송
  • Service discovery : 모니터링 대상에 대한 ip나 기타 접속 정보를 설정 파일에 주어서 모니터링 정보를 가져오는 방식을 사용.

참고
https://medium.com/@tkdgy0801/prometheus-%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EB%AA%A8%EB%8B%88%ED%84%B0%EB%A7%81-part-1-69de3e87d427

0개의 댓글