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

이 한글 문서는 사용자의 편의를 위해 기계 번역되었습니다.

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

문제 신고

CLI를 사용하여 변경 사항 추적

변경 추적 기능은 특정 변경이 고객과 시스템에 미치는 영향을 모니터링하는 좋은 방법입니다. 모니터링할 변경 사항을 지정한 다음 New Relic UI에서 결과를 확인하면 됩니다.

GraphQL 또는 CI/CD 통합을 사용하여 모니터링할 변경 사항을 지정할 수 있지만 CLI를 사용하여 동일한 작업을 수행할 수도 있습니다. CLI를 사용하여 모니터링할 변경 사항을 지정하는 경우 GraphQL 쿼리 를 실행하거나 New Relic 데이터베이스에 대해 NRQL 쿼리 를 실행하여 해당 변경 사항 목록을 검색할 수 있습니다.

다음은 2분 길이의 개요 비디오입니다. 또는 아래 단계로 바로 이동할 수 있습니다.

CLI 설치

GraphQL 변형을 보내 마커를 생성할 수 있는 새로운 버전의 CLI가 있습니다. CLI를 사용하고 있더라도 이 기능을 활용하려면 CLI를 업그레이드해야 합니다.

CLI를 설치하거나 업그레이드하려면 여기 의 단계를 따르십시오.

CLI를 사용하여 변경 마커 만들기

CLI에는 다양한 옵션(아래 표시)이 있지만 create 명령은 특정 New Relic 엔터티에 대한 특정 변경 사항을 표시합니다.

다음은 마커를 만드는 구문입니다.

newrelic entity deployment create [flags]

다음은 예입니다.

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

기본(상위) 옵션

-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

상위 명령에서 상속된 옵션

-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

무엇 향후 계획

CLI를 사용하여 추적하려는 변경 사항을 지정한 후 New Relic UI에서 해당 변경 사항의 영향을 분석할 수 있습니다.

Copyright © 2024 New Relic Inc.

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