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

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

英語版と翻訳版に矛盾がある場合は、英語版が優先されます。詳細については、このページを参照してください。

問題を作成する

Vert.x 向けNew Relic Java インストゥルメンテーション 拡張機能

Java インストゥルメンテーション for Vert.x 拡張機能は、監視 Vert.x のインストゥルメンテーションを提供します。 Cassandra、JDBCClient、コルーチン、Kafka、RxJava、SQL クライアント、Redis、MongoDB、Reactive およびサービス プロキシ。

Javaエージェントのインストール

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にコピーします。

  • スクリプトを実行して、Java インストゥルメンテーションを Vert.x に統合します。 New Relic 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 エージェントの「extensions」フォルダーの場所を更新します。

    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

Java インストゥルメンテーション for Vert.x Extensions Releasesから、 vertx-instrumentation-vx.y.z.zip一時ディレクトリにダウンロードし、解凍します。 すべての jar ファイルをNew Relic Java APM エージェントの extensions フォルダーにコピーします。

インテグレーションを確認する

Vert.xのJavaインストゥルメンテーションを設定した後 拡張機能を使用すると、アプリケーションの Vert.x 拡張機能のトランザクションとトレースを New Relic APM およびサービス内で直接視覚化できます。

インテグレーションの問題の報告

Vert.xのJavaインストゥルメンテーションで問題が発生した場合 拡張機能については、 GitHub リポジトリで報告してください。 皆様からのフィードバックは、問題を迅速に特定して対処するのに役立ち、Vert.xのスムーズで信頼性の高い監視エクスペリエンスを保証します。 アプリケーション。 インテグレーションの向上にご協力いただきありがとうございます。

Copyright © 2024 New Relic株式会社。

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