본문 바로가기
클라우드/prometheus

prometheus - gitlab metrics 설정하기

by "뭉치" 2021. 9. 30.
728x90
prometheus.yml - scrape configs 에 gitlab metrics 정보 추가
...
 
scrape_configs:
...
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'gitlab'
    # metrics_path defaults to '/metrics'
    #scrape_interval: 5s
    metrics_path: '/-/metrics'
    scheme: 'https'
 
    params:
      token: ['-AK-DSTrWSj478wHFmZr']
    # scheme defaults to 'http'.
 
    static_configs:
    - targets: ['gitlab url']
 
...
728x90

댓글