본문 바로가기
database/DevOps를 위한 Kubernetes 시작

{쿠버네티스 모니터링} 프로메테우스 기반 모니터링

by 문파워 2020. 12. 1.
  • 쿠버네티스 기반의 시스템 모니터링의 대상
  • 리소스
  • 디스크
  • CPU
  • 메로리
  • Pod 
  • 네트워크 

 

  • 프로메테우스 기반 모니터링 아키텍쳐 (1)
  • SoundCloud 에서 개발된 모니터링 툴
  • 시계열 (time series) 데이터를 저장할 수 있는 다차원 (multi-dimensional) 데이터 모델과 이 데이터 모델을 효과적으로 활용할 수 있는 PromQL이라는 쿼리 언어
  • 수집대상을 정적으로 설정할 수 있고 서비스 디스커버리를 통해서 동적 설정도 가능 
  • 데이터 저장은 디스크에 저장하는 것도 가능하지만 외부 스토리지에 저장 역시 가능 

 

  • 프로메테우스 기반 모니터링 아키텍쳐 (2)

 

  • 프로메테우스 서버 : 시계열 데이터를 수집해와서 저장하는 메인 컴포넌트
  • 클라이언트 라이브러리 : 애플리케이션을 개발할 때 프로메테우스에서 데이터를 수집 
  • pushgateway : 클라이언트에서 직접 프로메테우스로 데이터 전송시 송신
  • exporter : 프로메테우스 클라이언트 라이브러리를 내장해서 만들어지지 않는 애플리케이션들에서 데이터를 수집
  • alertmanager : 알람을 보낼 때 알람의 중복처리, 그룹핑 등과 알람

 

 

 


 

 

 

프로메테우스와 그라파나로 개발 서버 모니터링하기 참고문서)

 

prometheus.io/docs/guides/node-exporter/

 

Monitoring Linux host metrics with the Node Exporter | Prometheus

The Prometheus Node Exporter exposes a wide variety of hardware- and kernel-related metrics. In this guide, you will: Start up a Node Exporter on localhost Start up a Prometheus instance on localhost that's configured to scrape metrics from the running Nod

prometheus.io

www.digitalocean.com/community/tutorials/how-to-install-prometheus-on-ubuntu-16-04

 

How To Install Prometheus on Ubuntu 16.04 | DigitalOcean

Prometheus is a powerful, open-source monitoring system that collects metrics from your services and stores them in a time-series database. This tutorial teaches you how to install, configure, and secure Prometheus and Node Exporter to generate metric

www.digitalocean.com

 

댓글