• 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의 운영에 대한 심층적인 정보를 얻으세요. Envoy 백앤드 클러스터, 청취 소켓, HTTP 라우팅 및 암호화 자료의 최적 성능을 보장하기 위해 주요 지표를 모니터링합니다.

Envoy 통합을 설정한 후 Envoy 메트릭을 위한 대시보드를 제공합니다.

인프라 에이전트 설치

Envoy 통합을 사용하려면 동일한 호스트에 인프라 에이전트도 설치 해야 합니다. 클라이언트 에이전트는 호스트 자체를 모니터링하고, 다음 단계에서 설치하게 될 통합은 Envoy 관련 데이터로 모니터링을 확장합니다.

nri-prometheus와 Envoy 통합 활성화

Envoy 통합을 설정하려면 다음 단계를 따르세요.

  1. 통합 디렉터리에 nri-prometheus-config.yml 이라는 파일을 만듭니다.

    bash
    $
    touch /etc/newrelic-infra/integrations.d/nri-prometheus-config.yml
  2. 에이전트가 Envoy 데이터를 캡처할 수 있도록 하려면 다음 스니펫을 nri-prometheus-config.yml 파일에 추가하세요.

    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 로그를 뉴렐릭으로 전달하려면 다음 단계를 따르세요.

  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

데이터 찾기

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 Inc.

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