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

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

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

문제 신고

자바 Vert.x 이벤트 버스 통합

Java Vert.x 이벤트 버스 통합은 (Vert.x)[https://vertx.io/] 모니터링을 위한 계측을 제공합니다. 이벤트 버스 - 버스 전반에 걸쳐 이벤트 흐름을 추적할 수 있습니다. Vert.x를 위해 특별히 설계되었습니다. AbstractVerticle 확장하는 Verticles, 이 확장은 각 구현하다, 배포하다 클래스는 AbstractVerticle 에 의해 특별히 정의된 메서드를 제외한 모든 메서드를 모니터링합니다.

지원되는 방법

통합은 지표를 추적하거나 제외합니다. 각각의 목록은 다음과 같습니다.

추적된 방법:

  • 이벤트 흐름 추적을 용이하게 하는 방법
  • 애플리케이션 동작 및 성능에 대한 가시성을 강화하는 방법입니다.

제외되는 방법:

  • 특정 수명 주기 및 설정 방법(start, stop, rxStart, rxStop, config, deploymentID, getVertx, init, processArgs)

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

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

Java Vert.x 설치 및 구성 이벤트 버스 통합

Java Vert.x를 설치하고 구성하려면 이벤트 버스 통합은 다음 단계를 따르세요.

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

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

  • 스크립트를 실행하여 Java Vert.x를 통합하세요. 뉴렐릭 APM을 이용한 이벤트 버스 모니터링.

    bash
    $
    #!/bin/bash
    $
    $
    # Define variables
    $
    apiUrl="https://api.github.com/repos/newrelic/newrelic-java-vertx/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."

Java Vert.x를 설치하고 구성하려면 이벤트 버스 통합은 다음 단계를 따르세요.

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

    bash
    $
    # Define variables
    $
    $apiUrl = "https://api.github.com/repos/newrelic/newrelic-java-vertx/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

Java Vert.x 이벤트 버스 통합 릴리스 에서 vertx-instrumentation-vx.y.z.zip 임시 디렉토리에 다운로드하고 압축을 풉니다. 모든 'jar' 파일을 뉴렐릭 Java APM 에이전트의 'extensions' 폴더에 복사하세요.

통합 확인

Java Vert.x를 구성한 후 이벤트 버스 통합을 통해 애플리케이션의 Vert.x를 시각화할 수 있습니다. 이벤트 버스 프로세서 및 트레이스는 크리렐릭 APM 및 서비스 내에서 직접 제공됩니다.

통합 문제 보고

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

Copyright © 2024 New Relic Inc.

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