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

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

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

Crea una propuesta

Seguimiento de cambios mediante la CLI

La característica de seguimiento de cambios es una buena manera de monitor los efectos de cambios específicos en sus clientes y sistemas. Para ello, designe qué cambios desea monitor y luego vea los resultados en la UI de New Relic.

Si bien puede designar qué cambios desea monitor usando GraphQL o una integración CI/CD, también puede usar nuestra CLI para hacer lo mismo. Si utiliza la CLI para designar los cambios que desea monitor, puede ejecutar una consulta GraphQL o ejecutar una consulta NRQL en la base de datos New Relic para recuperar una lista de esos cambios.

Aquí hay un video de descripción general de dos minutos, o puede ir directamente a los pasos a continuación.

Instale la CLI

Tenemos una nueva versión de la CLI que le permite enviar mutaciones GraphQL para crear marcadores. Incluso si ha estado usando la CLI, deberá actualizarla para aprovechar esta característica.

Siga los pasos aquí para instalar o actualizar la CLI.

Hacer un marcador de cambio con la CLI

La CLI tiene una variedad de opciones (que se muestran a continuación), pero el comando create marca un cambio específico para una entidad New Relic determinada.

Esta es la sintaxis para crear un marcador:

newrelic entity deployment create [flags]

He aquí un ejemplo:

newrelic entity deployment create --guid INSERT_YOUR_GUID_HERE --version <1.0.0>

Opciones primarias (principales)

-h, --help help for create
-g, --guid string the entity GUID to create change tracker
-v, --version string the tag names to add to the entity
--changelog string a URL for the changelog or list of changes if not linkable
--commit string the commit identifier, for example, a Git commit SHA
--deepLink string a link back to the system generating the deployment
--deploymentType string type of deployment, one of BASIC, BLUE_GREEN, CANARY, OTHER, ROLLING or SHADOW
--description string a description of the deployment
--groupId string string that can be used to correlate two or more events
-t --timestamp int64 the start time of the deployment, the number of milliseconds since the Unix epoch, defaults to now
-u --user string username of the deployer or bot

Opciones heredadas de los comandos principales

-a, --accountId int the account ID to use. Can be overridden by setting NEW_RELIC_ACCOUNT_ID
--debug debug level logging
--format string output text format [JSON, Text, YAML] (default "JSON")
--plain output compact text
--profile string the authentication profile to use
--trace trace level logging

Que sigue

Después de haber utilizado la CLI para designar los cambios de los que desea realizar un seguimiento, puede analizar el efecto de esos cambios en la UI de New Relic:

Copyright © 2024 New Relic Inc.

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