• 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.

문제 신고

인프라 에이전트 자체 계측

에이전트 버전 1.24.0 부터 에이전트 자체 계측을 활성화하고 New Relic APM 을 사용하여 에이전트 성능을 모니터링할 수 있습니다. 이를 통해 에이전트의 동작, 대기열 활용 및 통합 페이로드에 대한 더 나은 비전을 가질 수 있으므로 구성 및 문제 해결이 더 쉬워집니다.

중요

인프라 에이전트 자체 계측은 실험적인 기능입니다. 계측된 원격 분석이 변경될 수 있습니다(메트릭, 트랜잭션, 사용자 지정 이벤트). 복잡한 문제 해결 시나리오에서만 활성화하는 것이 좋습니다. 데이터 수집에 대한 표준 가격이 적용됩니다.

자체 계측은 기본적으로 비활성화되어 있습니다. 활성화하려면 self_instrumentation 구성 옵션을 사용하십시오.

self_instrumentation: "newrelic"

self_instrumentation 이(가) 활성화되면 에이전트가 자체에 대한 측정항목을 보고하고 새 애플리케이션 New Relic infrastructure agent 이 New Relic APM UI에 나타납니다.

New Relic infrastructure agent 애플리케이션에 액세스하면 다음에 대한 데이터가 표시됩니다.

  • Go 런타임(cpu, 메모리...)
  • 트랜잭션(샘플러, 통합, https 게시물...)

에이전트의 내부 이벤트 대기열 사용률 및 통합 페이로드에 대한 사용자 지정 메트릭을 보려면 다음 대시보드를 가져올 수 있습니다.

아래 json 페이로드에서 ACCOUNT_ID 자리 표시자를 계정 번호로 바꿉니다. 대시보드 가져오기 에 대한 추가 정보

{
"name": "New Relic infrastructure agent instrumentation",
"description": "Overview of New Relic infrastructure agent",
"permissions": "PUBLIC_READ_WRITE",
"pages": [
{
"name": "Overview",
"description": null,
"widgets": [
{
"title": "Goroutines",
"layout": {
"column": 1,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "SELECT average(newrelic.timeslice.value) AS `Go/Runtime/Goroutines` FROM Metric WHERE metricTimesliceName = 'Go/Runtime/Goroutines' AND appName = 'New Relic Infrastructure Agent' TIMESERIES"
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Agent Used Memory",
"layout": {
"column": 5,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "FROM Metric SELECT average(apm.service.memory.physical) WHERE appName = 'New Relic Infrastructure agent' TIMESERIES"
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Integrations Payload Size",
"layout": {
"column": 9,
"row": 1,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.stacked-bar"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "FROM Transaction SELECT average(payload_size) facet name,integration_hostname,integration_port LIMIT MAX TIMESERIES"
}
]
}
},
{
"title": "Queue Event utilization",
"layout": {
"column": 1,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "FROM Metric SELECT percentile(agent.eventQueueUtilization,99,95,50) TIMESERIES "
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Queue Capacity",
"layout": {
"column": 5,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "FROM Metric SELECT max(agent.eventQueueCapacity) TIMESERIES"
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "postEventsNum",
"layout": {
"column": 9,
"row": 4,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "FROM Metric SELECT max(agent.postEventsNum) TIMESERIES"
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Transactions",
"layout": {
"column": 1,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"facet": {
"showOtherSeries": false
},
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "FROM Transaction SELECT average(duration) WHERE appName = 'New Relic Infrastructure agent' FACET name TIMESERIES "
}
],
"yAxisLeft": {
"zero": true
}
}
},
{
"title": "Transaction Errors",
"layout": {
"column": 5,
"row": 7,
"width": 4,
"height": 3
},
"linkedEntityGuids": null,
"visualization": {
"id": "viz.line"
},
"rawConfiguration": {
"legend": {
"enabled": true
},
"nrqlQueries": [
{
"accountId": ACCOUNT_ID,
"query": "FROM TransactionError SELECT count(*) TIMESERIES"
}
],
"yAxisLeft": {
"zero": true
}
}
}
]
}
]
}
Copyright © 2024 New Relic Inc.

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