프로메테우스 설치

<https://prometheus.io/download/>
링크 접속하여 다운로드

프로메테우스 설정 (prometheus.yml 수정)

# my global config
global:
  scrape_interval: 1s
  evaluation_interval: 1s 

# Alertmanager configuration
alerting:
  alertmanagers:
    - static_configs:
        - targets:
          # - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
  - job_name: "prometheus"
    metrics_path: "/actuator/prometheus"
    static_configs:
      - targets: ["localhost:9090"]

프로메테우스 실행

C:\\Program Files 경로로 프로메테우스 다운로드 파일 이동

// 프로메테우스 파일이 있는 경로로 이동
cd C:\\Program Files\\prometheus-2.55.0.windows-amd64

// 아래 명령어 실행
.\\prometheus.exe --config.file=prometheus.yml --web.listen-address=":9091"

프로메테우스 실행 확인

// 접속했을 때 프로메테우스 화면이 떠야함
<http://localhost:9091/>

그라파나 설치

<https://grafana.com/grafana/download>
링크 접속하여 다운로드

그라파나 실행

cd C:\\Program Files\\GrafanaLabs\\grafana\\bin
./grafana-server.exe

<http://localhost:3000>

초기 계정 admin/admin