Prometheus 파일 다운로드
Download | Prometheus
An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.
prometheus.io
해당 페이지에 들어가서 windows버전을 다운로드 받은뒤 압축을 풀게되면

다음과 같이 파일들이 있는데, yml을 열어 모니터링 할 서비스를 연결해주면 된다.

하단에 내용을 아래와 같이 추가해주면된다.
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "prometheus"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ["localhost:9090"]
# 모니터링할 사이트 추가
- job_name: 수집하는 이름(태그)
metrixs_path: "/actuator/prometheus" 수집할 경로를 지정
scrape_interval: 수집할 주기
static_configs:
- targets:["서버IP:포트"]
이후 우리는 proetheus.exe를 눌러 실행을하면된다. 실행하게 되면

다음과 같은 cmd 창이 뜨면서 jmeter와 같이 프로메테우스가 실행되고 http://localhost:9090 으로 접속하게되면

프로메테우스가 실행된것을 확인할수있다.
참조
[Prometheus] 프로메테우스 설치하기 (Window 설치)
아래의 프로메테우스 다운로드 링크에 접속 Download | Prometheus An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach. prometheus.io 1. OS에
hstory0208.tistory.com
'개발일기 > Server' 카테고리의 다른 글
Grafana와 Prometheus 연동하기 (0) | 2024.12.19 |
---|---|
Spring boot 에 Prometheus 연동하기 (0) | 2024.12.19 |
grafana 설치 (windows) (0) | 2024.12.18 |