본문 바로가기

Framework and Tool/Prometheus4

With grafana - 출처: https://prometheus.io/docs/tutorials/visualizing_metrics_using_grafana/ Goal - 수집한 metric을 Grafana로 시각화 Overview Prometheus server가 수집한 metric을 Grafana로 시각화 한다. 앞서 살펴보았듯 Prometheus도 web UI를 제공하긴 하지만 일반적으로는 Grafana dashboard를 가장 많이 사용한다. prometheus 홈페이지에서도 Prometheus graph 대신 Grafana를 권장하고 있다. Grafana 설치 및 설정 https://grafana.com/docs/grafana/latest/setup-grafana/installation/#supported-oper.. 2023. 4. 22.
Node exporter - 출처: https://prometheus.io/docs/guides/node-exporter/ Goal - localhost 에서 Node exporter 시작 - Node exporter로 부터 metric을 수집하도록 Prometheus instance 를 설정하고 시작 Overview 아래 Architecture 에서 exporter로 부터 metric을 수집해보고 prometheus instance 에서 제대로 수집했는지 확인해본다. Node exporter 설치 Prometheus Node Exporter는 하나의 바이너리 파일이다. download page(https://prometheus.io/download/#node_exporter) 에서 받은 후 압축을 풀어준다. tar xvfz n.. 2023. 4. 22.
Prometheus - 살펴보기(first steps) - 출처: https://prometheus.io/docs/introduction/first_steps/ - 개요 Prometheus는 monitor 대상의 metric HTTP endpoint를 통해 정보를 긁어모아서 지표를 수집하는 모니터링 플랫폼이다. 이번 글에서는 prometheus 설치 방법과 환경설정 그리고 모니터에 대해 간단하게 살펴본다. prometheus를 다운받아서 설치하고 실행시켜보고 host와 서비스에서 시계열 데이터를 노출하는 exporter를 다운받고 설치해본다. 우선 prometheus 자체적으로 제공하는 host 수준의 다양한 지표들(ex - 메모리 사용, GC 등)을 이용하여 exporter를 별도 연동하지 않고 prometheus 자체적인 exporter로 사용해본다. -.. 2022. 1. 6.
Prometheus - 개요 - 출처: https://prometheus.io/docs/introduction/overview/ - Prometheus란 Prometheus는 원래 SoundCloud(https://soundcloud.com/)에서 구축되었던 모니터링 & 알람 오픈소스 시스템이다. Prometheus는 label이라고 불리는 key-value 쌍들과 timestamp 정보와 함께 지표 데이터를 시계열(time series) 데이터형태로 저장하고 수집한다. - 주요 특징 프로메테우스의 주요 특징은 아래와 같다. metric명과 key-value 쌍들에 의해 식별되는 시계열 데이터 형테의 다차원 모델 이런 차원을 활용하는 유용한 Query 언어인 PromQL 제공 분산 저장소에 의존하지 않으므로 각 서버의 자율성 보장 .. 2022. 1. 2.