• EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Esta tradução de máquina é fornecida para sua comodidade.

Caso haja alguma divergência entre a versão em inglês e a traduzida, a versão em inglês prevalece. Acesse esta página para mais informações.

Criar um problema

Instrumentação Java New Relic para Vert.x Extensões

Instrumentação Java para Extensões Vert.x fornece instrumentação para monitoramento Vert.x Cassandra, JDBCClient, Coroutines, Kafka, RxJava, SQL Clients, Redis, MongoDB, Reactive e Service Proxy.

Instale o agente Java

O agente Java APM deve ser instalado para configurar as extensões Java Vert.x. Siga as instruções para instalar o agente Java APM

Depois que o agente Java APM estiver instalado e configurado para seu aplicativo, crie uma pasta extensions no diretório newrelic se ela ainda não existir:

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

Instalar e configurar instrumentação Java para Vert.x Extensões

Para instalar e configurar a instrumentação Java para Vert.x Extensões, siga estas etapas:

  • Atualize o local da pasta extensions do agente Java APM no script bash fornecido.

  • Copie os comandos atualizados para um script bash, install_vertx_integration.sh.

  • Execute o script para integrar a instrumentação Java para Vert.x Extensões com 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."

Para instalar e configurar a instrumentação Java para Vert.x Extensões, siga estas etapas:

  • Atualize o local da pasta 'extensões' do agente Java APM nos comandos do PowerShell fornecidos:

    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

Da instrumentação Java para Vert.x Extensions Releases, baixe vertx-instrumentation-vx.y.z.zip para um diretório temporário e descompacte-o. Copie todos os arquivos jar para a pasta extensions do agente Java New Relic APM.

Verifique sua integração

Depois de configurar a instrumentação Java para Vert.x Extensões, você pode visualizar a transação e rastreamento de extensões Vert.x do seu aplicativo diretamente no New Relic APM and Services.

Relatando problemas de integração

Se você encontrar algum problema com a instrumentação Java para Vert.x Extensões, informe-as no repositório GitHub. Seu feedback nos ajuda a identificar e resolver problemas prontamente, garantindo uma experiência de monitoramento tranquila e confiável para Vert.x aplicativo. Obrigado por contribuir para a melhoria da nossa integração!

Copyright © 2024 New Relic Inc.

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