• EnglishEspañol日本語한국어Português
  • Inicia sesiónComenzar ahora

Te ofrecemos esta traducción automática para facilitar la lectura.

En caso de que haya discrepancias entre la versión en inglés y la versión traducida, se entiende que prevalece la versión en inglés. Visita esta página para obtener más información.

Crea una propuesta

New Relic Java para Vert.x Extensiones

Instrumentación Java para Vert.x Extensions proporciona instrumentación para monitoreo Vert.x Cassandra, JDBCClient, Coroutines, Kafka, RxJava, SQL Clients, Redis, MongoDB, Reactive y Service Proxy.

Instalar el agente de Java

Se debe instalar el agente Java APM para configurar las extensiones Java Vert.x. Siga las instrucciones para instalar el agente Java APM

Una vez que Java agente APM esté instalado y configurado para su aplicación, cree una carpeta extensions en el directorio newrelic si aún no existe:

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

Instalar y configurar la instrumentación Java para Vert.x Extensiones

Para instalar y configurar la instrumentación Java para Vert.x Extensiones, sigue estos pasos:

  • Actualice la ubicación de la carpeta extensions del agente Java APM en el script bash proporcionado.

  • Copie los comandos actualizados a un script bash, install_vertx_integration.sh.

  • Ejecute el script para integrar la instrumentación Java para Vert.x Extensiones con 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 y configurar la instrumentación Java para Vert.x Extensiones, sigue estos pasos:

  • Actualice la ubicación de la carpeta 'extensiones' del agente Java APM en los comandos de PowerShell proporcionados:

    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

Desde instrumentación Java para versiones de extensiones Vert.x, descargue vertx-instrumentation-vx.y.z.zip a un directorio temporal y descomprímalo. Copie todos los archivos jar a la carpeta extensions del agente Java de New Relic APM.

Verifica tu integración

Luego de configurar la instrumentación Java para Vert.x Extensiones, puede visualizar la transacción y traza de las extensiones Vert.x de su aplicación directamente dentro de New Relic APM y Servicios.

Informar problemas de integración

Si tiene algún problema con la instrumentación Java para Vert.x Extensiones, infórmalas en el repositorio de GitHub. Sus comentarios nos ayudan a identificar y abordar los problemas rápidamente, lo que garantiza una experiencia de monitoreo fluida y confiable para Vert.x. aplicación. ¡Gracias por contribuir a la mejora de nuestra integración!

Copyright © 2024 New Relic Inc.

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