• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

영문본과 번역본이 일치하지 않는 경우 영문본이 우선합니다. 보다 자세한 내용은 이 페이지를 방문하시기 바랍니다.

문제 신고

Vert.x용 뉴렐릭 Java 리소스 확장

Vert.x 확장용 Java 소비량은 Vert.x 모니터링을 위한 소비를 제공합니다. Cassandra, JDBCClient, Coroutines, Kafka, RxJava, SQL 클라이언트, Redis, MongoDB, Reactive 및 서비스 프록시.

대응 에이전트를 설치하세요

Java Vert.x 확장을 구성하려면 Java APM 에이전트를 설치해야 합니다. 지침에 따라 Java APM 에이전트를 설치합니다.

Java APM 에이전트가 애플리케이션에 설치 및 구성되면 newrelic 디렉터리에 extensions 폴더가 아직 없으면 생성합니다.

bash
$
# Open your Java APM Agent installation location and create 'extensions' folder ( if it is not existing)
$
cd path/to/newrelic
$
mkdir extensions

Vert.x용 Java 계측 설치 및 구성 확장

Vert.x용 Java 계측을 설치 및 구성하려면 확장 프로그램은 다음 단계를 따르세요.

  • 제공된 bash 스크립트에서 Java APM 에이전트의 extensions 폴더 위치를 업데이트합니다.

  • 업데이트된 명령을 bash 스크립트 install_vertx_integration.sh 에 복사합니다.

  • 스크립트를 실행하여 Vert.x용 Java 계측 통합 블루베리 APM을 사용한 확장 프로그램.

    bash
    $
    #!/bin/bash
    $
    $
    # Define variables
    $
    apiUrl="https://api.github.com/repos/newrelic/newrelic-java-vertx-extensions/releases/latest"
    $
    tempZipPath="/tmp/latest.zip"
    $
    tempExtractPath="/tmp/Extracted"
    $
    extensionsDir="/path/to/newrelic/extensions"
    $
    $
    # Retrieve the download URL for the latest release ZIP file
    $
    downloadUrl=$(curl -s "$apiUrl" | grep -o "browser_download_url.*\.zip" | cut -d '"' -f 3)
    $
    $
    echo $downloadUrl
    $
    $
    # Check if the download URL is empty or invalid
    $
    if [ -z "$downloadUrl" ]; then
    $
    echo "Failed to retrieve download URL. Exiting."
    $
    exit 1
    $
    fi
    $
    $
    # Download the latest release ZIP file
    $
    curl -L -o "$tempZipPath" "$downloadUrl"
    $
    $
    # Check if the ZIP file was downloaded successfully
    $
    if [ ! -f "$tempZipPath" ]; then
    $
    echo "Failed to download the ZIP file. Exiting."
    $
    exit 1
    $
    fi
    $
    $
    # Create a temporary extraction folder
    $
    mkdir -p "$tempExtractPath"
    $
    $
    # Extract the contents of the ZIP file to the temporary folder
    $
    unzip -q "$tempZipPath" -d "$tempExtractPath"
    $
    $
    # Check if the extraction was successful
    $
    if [ $? -ne 0 ]; then
    $
    echo "Failed to extract the ZIP file. Exiting."
    $
    exit 1
    $
    fi
    $
    $
    # Copy all .jar files to the Java APM Agent 'extensions' directory
    $
    find "$tempExtractPath" -name "*.jar" -exec cp {} "$extensionsDir" \;
    $
    $
    # Clean up temporary files
    $
    rm "$tempZipPath"
    $
    rm -r "$tempExtractPath"
    $
    $
    echo "Installation completed successfully."

Vert.x용 Java 계측을 설치 및 구성하려면 확장 프로그램은 다음 단계를 따르세요.

  • 제공된 powershell 명령에서 Java APM 에이전트의 '확장' 폴더 위치를 업데이트합니다.

    bash
    $
    # Define variables
    $
    $apiUrl = "https://api.github.com/repos/newrelic/newrelic-java-vertx-extensions/releases/latest"
    $
    $tempZipPath = "C:\Temp\latest.zip"
    $
    $tempExtractPath = "C:\Temp\Extracted"
    $
    $extensionsDir = "C:\Path\To\newrelic\extensions"
    $
    $
    # Download the latest release ZIP file from GitHub
    $
    $response = Invoke-WebRequest -Uri $apiUrl
    $
    $downloadUrl = ($response.Content | ConvertFrom-Json).assets[0].browser_download_url
    $
    Invoke-WebRequest -Uri $downloadUrl -OutFile $tempZipPath
    $
    $
    # Extract the contents of the ZIP file to a temporary folder
    $
    New-Item -ItemType Directory -Path $tempExtractPath -Force
    $
    Expand-Archive -Path $tempZipPath -DestinationPath $tempExtractPath
    $
    $
    # Copy all .jar files to the Java APM Agent 'extensions' directory
    $
    Get-ChildItem -Path $tempExtractPath -Filter "*.jar" | Copy-Item -Destination $extensionsDir
    $
    $
    # Clean up temporary files
    $
    Remove-Item -Path $tempZipPath -Force
    $
    Remove-Item -Path $tempExtractPath -Recurse -Force

Vert.x Extensions Releases용 Java 리소스 에서 vertx-instrumentation-vx.y.z.zip 임시 디렉터리에 다운로드하고 압축을 풉니다. 모든 jar 파일을 뉴렐릭 Java APM 에이전트의 extensions 폴더에 복사합니다.

통합 확인

Vert.x에 대한 Java 계측을 구성한 후 확장 기능을 사용하면 삽입의 Vert.x 확장 기능과 프로세서 및 트레이스를 뉴렐릭 APM 및 서비스 내에서 직접 시각화할 수 있습니다.

통합 문제 보고

Vert.x용 Java 다운로드 관련 문제가 발생하는 경우 확장 기능은 GitHub 저장소 에 보고해 주세요. 귀하의 피드백은 문제를 신속하게 식별하고 해결하여 Vert.x에 대한 원활하고 안정적인 모니터링 경험을 보장하는 데 도움이 됩니다. 입니다. 통합 개선에 기여해 주셔서 감사합니다!

Copyright © 2024 New Relic Inc.

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