Redpanda ダッシュボードを使用すると、クラスター レベルのメトリクス、Redpanda スケジュール グループ、サービス エラーと稼働時間を追跡できます。インフラストラクチャ エージェントと nri-prometheus 統合を使用して構築された Redpanda ダッシュボードは、nri-prometheus エンドポイント スクレイピングを活用しているため、最も重要なデータをすべて 1 か所で表示できます。
New Relic で Redpanda をセットアップすると、すぐにデータがこのようなダッシュボードに表示されます。
インフラストラクチャエージェントをインストールします
Redpanda データを New Relic に取り込む前に、インフラストラクチャ エージェントをインストールし、nri-prometheus を構成してメトリクスを公開する必要があります。
- ガイド付きインストールに従って、システムにインフラストラクチャ エージェントをインストルメント化します。ドキュメントを使用して、コマンド ラインからインフラストラクチャ エージェントをインストールできます。
RedPanda 用に nri-prometheus を構成する
/etc/newrelic-infra/integrations.d
にnri-prometheus-config.yml
という名前のファイルを作成します。- RedPanda データを収集するには、次の構成を
nri-prometheus-config.yml
ファイルに追加します。構成ファイルは、 nri-prometheus リポジトリ内のスニペットと一致する必要があります。
integrations: - name: nri-prometheus config: # When standalone is set to false, nri-prometheus requires an infrastructure agent to work and send data. Defaults to true standalone: false
# If using the infrastructure agent, emitters have to include 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 nri-prometheus can scrape data from the cluster. cluster_name: "YOUR_EXPORTER_NAME"
targets: - description: Redpanda metrics are captured in the below urls urls: ["http://localhost:9644/metrics", "http://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, use with care. audit: false
# The HTTP client timeout when fetching data from endpoints. Defaults to "5s" if it's not set. # scrape_timeout: "5s"
# Length in time to distribute the scraping from the endpoints. Default to "30s" if it's not set. scrape_duration: "5s"
# Number of worker threads used for scraping targets. # For large clusters with many (>400) endpoints, 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 ダッシュボードをさらにカスタマイズしたい場合は、NRQL クエリの作成と管理の詳細をご覧ください。 New Relic UI で:
基本的なクエリと高度なクエリを作成するためのクエリ ビルダーの概要。
ダッシュボードを管理し て調整する
表示モードにするか、ダッシュボードにコンテンツを追加します。