본문 바로가기
728x90

클라우드18

prometheus - InfluxDB 설치( 설치 파일 사용 ) InfluxDB 설치 binary 설치 파일을 이용하여 설치 수행 ( https://docs.influxdata.com/influxdb/v1.8/introduction/install/#verify-the-authenticity-of-downloaded-binary-optional ) dashboard@server01:/$ cd /apps dashboard@server01:/apps$ sudo mkdir influxDB dashboard@server01:/apps/influxDB$ dashboard@server01:/apps/influxDB$ sudo wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.0_linux_amd64.tar.gz /app.. 2021. 10. 2.
Remote Storage 설정하기 Prometheus Data 저장 수집한 데이터를 저장하고 시간에 흐름에 따라 조회를 할 수 있도록 시계열(Time-series) 데이터를 저장할 수 있는 저장소가 내장되어 있습니다. 데이터를 저장하는 방법은 Local Storage와 Remote Storage를 이용하는 방법이 있으며, 대부분은 Local Storage를 사용하지만 원격지에 있는 서버에 데이터를 저장하는 방법도 사용할 수 있습니다. STORAGE https://prometheus.io/docs/prometheus/latest/storage/#remote-storage-integrations Remote Storage 설정(TSDB(Time-series Database) 중 InfluxDB 활용) 설치 Docker docker run -.. 2021. 10. 1.
prometheus - gitlab metrics 설정하기 prometheus.yml - scrape configs 에 gitlab metrics 정보 추가 ... scrape_configs: ... # The job name is added as a label `job=` 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'].. 2021. 9. 30.
prometheus - keycloak Metrics 설정하기 prometheus.yml - scrape configs 에 keycloak metrics 정보 추가 ... scrape_configs: ... - job_name: 'keycloak' scrape_interval: 5s metrics_path: '/auth/realms/master/metrics' scheme: 'http' static_configs: - targets: ['{keycloak host}'] ... - metrics endpoint : /auth/realms//metrics으로 url에서 사용하는 realm과 관계없이 모든 metrics 정보를 가져온다. 기본값은 /auth/realms/master/metrics 2021. 9. 29.
728x90
LIST