Redpanda ダッシュボードを使用すると、クラスター レベルのメトリクス、Redpanda スケジューリング グループ、サービス エラーとアップタイムを追跡できます。インフラストラクチャ エージェントと Prometheus OpenMetrics の統合で構築された Redpanda ダッシュボードは、OpenMetrics エンドポイント スクレイピングを利用するため、最も重要なデータをすべて 1 か所で表示できます。
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 クイックスタートをインストールすると、重要な Redpanda データを New Relic で確認できます。データが報告されていることを確認するには:
- one.newrelic.comにアクセスし、次に[メトリクスとイベント]をクリックします。
- 次の NRQL クエリを実行します:
FROM Metric SELECT latest(vectorized_application_uptime)
。 - New Relic が Redpanda メトリクスを取り込んだことを確認したら、 one.newrelic.comからDashboardsにアクセスして RedPanda ダッシュボードを表示します。
次は何ですか?
RedPanda ダッシュボードをさらにカスタマイズしたい場合は、New Relic UI での NRQL クエリの作成とダッシュボードの管理について詳しく学ぶことができます。
- 基本的なクエリと高度なクエリを作成するためのクエリ ビルダーの概要。
- ダッシュボードをカスタマイズしてさまざまなアクションを実行するためのダッシュボードの概要。
- ダッシュボードを管理して、ダッシュボードの表示モードを調整したり、ダッシュボードにコンテンツを追加したりします。