https://prometheus.io/download/
tar xzvf prometheus-2.54.1.linux-amd64.tar.gz
cd prometheus-2.54.1.linux-amd64
vi prometheus.yml
Default yml 정보
하위 정보 추가
- job_name: 'spring-actuator'
metrics_path: '/actuator/prometheus'
scrape_interval: 5s
static_configs:
- targets: ['localhost:8080']
metrics_path : '/[management.endpoints.web.base-path]/prometheus'
targets : [spring boot 주소]
./prometheus
./prometheus -- web.listen-address:8090
curl -x GET "http://localhost:9090/metrics"