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

사용자의 편의를 위해 제공되는 기계 번역입니다.

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.

문제 신고

NerdGraph 튜토리얼: APM 에이전트 구성 예제

이 문서는 구성 예제를 위한 장소입니다. NerdGraph API를 사용하는 에이전트.

서버 측 구성 구성

참고 에이전트가 NerdGraph를 통해 변경된 구성 값을 사용하려면 서버 측 구성을 활성화해야 합니다.

요구 사항은 서버 측 구성 요구 사항을 참조하십시오.

다음은 지정된 엔터티에 대한 서버 측 구성 설정의 상태를 반환하는 쿼리의 예입니다.

query ExampleReadQuery {
actor {
entity(guid:"ZjY1ODgxfEFQTXxBUFBYSUNBVElPTnz0ODEwMTY3NzZ") {
...on ApmApplicationEntity {
apmSettings {
apmConfig {
useServerSideConfig
}
}
}
}
}
}

다음은 서버 측 구성 을 비활성화하는 예입니다. guid 은 배열을 사용하므로 여러 항목을 업데이트하려는 경우에 유용할 수 있습니다.

mutation ExampleUpdateQuery {
agentApplicationSettingsUpdate(guid: "ZjY1ODgxfEFQTXxBUFBYSUNBVElPTnz0ODEwMTY3NzZ", settings: {apmConfig: {useServerSideConfig: false}}) {
apmSettings {
apmConfig {
useServerSideConfig
}
}
errors {
description
errorClass
field
}
}
}

엔터티의 GUID를 찾는 방법은 엔터티 데이터 찾기 를 참조하세요.

설정 검색

다음은 엔터티의 트랜잭션 추적기 설정을 반환하는 예입니다.

query ExampleReadQuery {
actor {
entity(guid:"ZjY1ODgxfEFQTXxBUFBYSUNBVElPTnz0ODEwMTY3NzZ") {
... on ApmApplicationEntity {
guid
name
apmSettings {
transactionTracer {
enabled
explainEnabled
explainThresholdType
explainThresholdValue
}
}
}
}
}
}
Copyright © 2024 New Relic Inc.

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