• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

Envoyの統合

New Relicへのシームレスなデータ統合により、Envoy の運営にインサイトを深く取り込みます。 キー メトリクスを監視して、Envoy バックエンドクラスタ、リスニング ソケット、HTTP ルーティング、および暗号化マテリアルの最適なパフォーマンスを確保します。

Envoy インテグレーションをセットアップした後、Envoy メトリクス用のダッシュボードを提供します。

インフラストラクチャエージェントをインストールします

Envoy 統合を使用するには、同じホストにインフラストラクチャ エージェントもインストールする必要があります。 インフラストラクチャエージェントはホスト自体を監視しますが、次のステップでインストールする統合は Envoy 固有のデータを使用して監視を拡張します。

nri-prometheus との Envoy 統合を有効にする

Envoy 統合をセットアップするには、次の手順に従います。

  1. Integration ディレクトリにnri-prometheus-config.ymlという名前のファイルを作成します。

    bash
    $
    touch /etc/newrelic-infra/integrations.d/nri-prometheus-config.yml
  2. 次のスニペットをnri-prometheus-config.ymlファイルに追加して、エージェントが Envoy データをキャプチャできるようにします。

    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
    # When running with infrastructure agent emitters will have to include infra-sdk
    emitters: infra-sdk
    # The name of your cluster. It's important to match other New Relic products to relate the data.
    cluster_name: "YOUR_DESIRED_CLUSTER_NAME"
    targets:
    - description: Envoy metrics list
    urls: ["http://<ip-address>:9901/stats/prometheus"]
    # 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"
    # Whether the integration should run in verbose mode or not. Defaults to false
    verbose: false
    # Whether the integration should run in audit mode or not. 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 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 many (&gt;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
    # Whether the integration should skip TLS verification or not. Defaults to false
    insecure_skip_verify: true
    timeout: 10s

Envoy ログの転送

Envoy ログを New Relic に転送するには、次の手順に従います。

  1. 次のパスにあるlogging.ymlという名前のログファイルを編集します。

    bash
    $
    cd /etc/newrelic-infra/logging.d
  2. 次のスクリプトをlogging.ymlファイルに追加します。 必要に応じて、 file Envoy ログ ファイルパスに置き換えます。

    logs:
  • name: envoy.log file: /tmp/envoy.log attributes: logtype: envoy_logs
  • name: envoy-admin.log file: /tmp/admin_access.log attributes: logtype: envoy_admin_logs

New Relic インフラストラクチャ エージェントを再起動します

インフラストラクチャ エージェントを再起動します。

bash
$
sudo systemctl restart newrelic-infra.service

数分以内に、アプリケーションはメトリクスをone.newrelic.comに送信します。

データを検索する

Envoyという名前の事前に構築されたダッシュボード テンプレートを選択して、Envoy アプリケーション メトリクスを監視できます。 事前に構築されたダッシュボード テンプレートを使用するには、次の手順に従います。

  1. one.newrelic.comから、

    + Add data

    ページに移動します

  2. クリック

    Dashboards

  3. 検索バーに次のように入力します。 Envoy

  4. Envoy ダッシュボードが表示されます。 クリックしてインストールしてください

    Envoy ダッシュボードはカスタム ダッシュボードとみなされ、Dashboards UIに表示されます。 ダッシュボードの使用と編集に関するドキュメントについては、ダッシュボードのドキュメントを参照してください。

    Envoy のダウンストリーム合計接続を確認する NRQL クエリは次のとおりです。

    SELECT latest(envoy_http_downstream_cx_total) as 'Downstream total connections' from Metric

次は何ですか?

NRQL クエリの作成とダッシュボードの生成の詳細については、次のドキュメントをご覧ください。

Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.