Redpanda 대시보드를 사용하면 클러스터 수준 메트릭, Redpanda 예약 그룹, 서비스 오류 및 가동 시간을 추적할 수 있습니다. 인프라 에이전트와 Prometheus OpenMetrics 통합으로 구축된 Redpanda 대시보드는 OpenMetrics 엔드포인트 스크래핑을 활용하므로 가장 중요한 모든 데이터를 한 곳에서 볼 수 있습니다.
New Relic으로 Redpanda를 설정하면 데이터가 즉시 이와 같은 대시보드에 표시됩니다.
인프라 에이전트 및 Prometheus OpenMetrics 통합 설치
Redpanda 데이터를 New Relic으로 가져오기 전에 인프라 에이전트를 설치한 다음 Prometheus OpenMetrics를 설치하여 메트릭을 노출해야 합니다.
- 가이드 설치 에 따라 인프라 에이전트로 시스템을 계측하십시오. 문서를 사용하여 명령줄을 통해 인프라 에이전트를 설치할 수 있습니다.
- Prometheus OpenMetrics 통합 을 설치하십시오.
RedPanda용 Prometheus OpenMetrics 구성
Prometheus OpenMetrics를 설치한 후 RedPanda 데이터를 스크랩하도록 nri-prometheus-config.yml
파일을 구성해야 합니다. 구성 파일은 nri-prometheus 리포지토리의 스니펫과 일치해야 합니다.
integrations:- name: nri-prometheus config: # When standalone is set to false, the infrastructure agent will need to send data so nri-prometheus can work. Defaults to true. standalone: false
# If using the infrastructure agent, emitters must be set to infra-sdk emitters: infra-sdk
# The name of your cluster. The name of your cluster must be consistent across New Relic products so the infrastructure agent and Prometheus OpenMetrics can scrape data from the cluster. cluster_name: "YOUR_EXPORTER_NAME"
targets: - description: "Redpanda metrics are captured in the below urls" urls: ["'localhost:9644/metrics', 'localhost:9644/public_metrics'] # tls_config: # ca_file_path: "/etc/etcd/etcd-client-ca.crt" # cert_file_path: "/etc/etcd/etcd-client.crt" # key_file_path: "/etc/etcd/etcd-client.key"
# Specifies whether or not the integration should run in verbose mode. Defaults to false. verbose: false
# Specifies whether or not the integration should run in audit mode. Defaults to false. # Audit mode logs the uncompressed data sent to New Relic. Use this to log all data sent. # It does not include verbose mode. This can lead to a high log volume, so use with care. audit: false
# The HTTP client timeout when fetching data from endpoints. Defaults to 30s. # scrape_timeout: "30s"
# Length in time to distribute the scraping from the endpoints. scrape_duration: "5s"
# Number of worker threads used for scraping targets. # For large clusters with more than 400 endpoints, we recommend that you slowly increase until scrape time falls between the desired `scrape_duration`. # Increasing this value too much will result in huge memory consumption if too many metrics are being scraped. # Default: 4 # worker_threads: 4
# Specifies whether or not the integration should skip TLS verification. Defaults to false. insecure_skip_verify: false
timeout: 10s
RedPanda 메트릭을 대시보드로 가져오기
Redpanda 빠른 시작을 설치하면 New Relic에서 중요한 Redpanda 데이터를 볼 수 있습니다. 데이터가 보고되는지 확인하려면:
- one.newrelic.com 으로 이동합니다. 그런 다음 측정항목 및 이벤트를 클릭합니다.
- 다음 NRQL 쿼리를 실행합니다:
FROM Metric SELECT latest(vectorized_application_uptime)
. - New Relic이 Redpanda 메트릭을 수집했음을 확인한 후 one.newrelic.com 에서 대시보드 로 이동하여 RedPanda 대시보드를 확인하십시오.
다음은 뭐지?
RedPanda 대시보드를 추가로 사용자 정의하려면 New Relic UI에서 NRQL 쿼리 작성 및 대시보드 관리에 대해 자세히 알아볼 수 있습니다.
- 기본 및 고급 쿼리를 생성 하기 위한 쿼리 빌더 소개
- 대시보드를 사용자 지정하고 다양한 작업을 수행하기 위한 대시보드 소개
- 대시보드를 관리하여 대시 보드 표시 모드를 조정하거나 대시보드에 더 많은 콘텐츠를 추가합니다.