성능 모니터링을 위한 Prometheus와 Grafana 배포
성능 모니터링을 위한 Prometheus와 Grafana 배포 방법을 설명합니다. 설치 단계, 샘플 대시보드, 수집되는 지표 유형을 안내합니다.
성능 모니터링 지원을 통해 관리자는 Prometheus 와 Grafana 통합을 통해 대규모 엔터프라이즈 배포의 시스템 상태를 추적할 수 있습니다. 이러한 통합은 여러 Mattermost 서버에서 데이터 수집을 지원하며, Mattermost를 고가용성 모드 로 실행하는 경우 특히 유용합니다. 시스템 상태를 추적한 후에는 Grafana 대시보드에서 성능 알림 설정 을 할 수 있습니다. 관리자는 Prometheus 배포 및 Grafana 를 통해 OpenMetrics 형식으로 Mattermost 애플리케이션에서 다양한 데이터 포인트를 수집하고 저장할 수 있습니다. Tip Prometheus와 Grafana를 배포하고 싶지 않으신가요? Mattermost 메트릭 플러그인을 사용하여 성능 지표 수집 도 가능합니다. Prometheus 설치 # Important Prometheus와 Grafana는 Mattermost와 같은 서버에 설치할 수 있지만, 별도의 서버에 이러한 통합을 설치하고 Prometheus가 Mattermost 및 연결된 다른 서버에서 모든 지표를 가져오도록 구성하는 것을 권장합니다. Prometheus 미리 컴파일된 바이너리 다운로드 를 통해 Darwin, Linux, Windows를 포함한 많은 인기 배포판에 대한 바이너리를 제공합니다. 설치 지침은 Prometheus 설치 가이드 를 참조하세요. prometheus.yml 이라는 Prometheus 구성 파일에서 다음 설정을 권장합니다: # my global config global: scrape_interval: 5s # Set to 5 seconds for optimal performance monitoring. evaluation_interval: 5s # Set to 5 seconds for optimal performance monitoring. # scrape_timeout is set to the global default (10s). # Attach these labels to any time series or alerts when communicating with # external systems (federation, remote storage, Alertmanager). external_labels: monitor: 'mattermost-monitor' # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. rule_files: # - "first.rules" # - "second.rules" # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself. scrape_configs: # The job name is added as a label `job=<job_name>` to any timeseries scrape
