エージェントバージョン1.24.0から、New Relic APMを使用して、エージェントのセルフインストルメンテーションを有効にし、エージェントのパフォーマンスを監視できます。これにより、エージェントの動作、キューの使用率、統合ペイロードなどをより適切に把握できるようになり、構成とトラブルシューティングが容易になります。
重要
インフラストラクチャエージェントの自己計測は実験的な機能です。インストルメント化されたテレメトリは変更される可能性があります(メトリクス、トランザクション、カスタムイベント)。複雑なトラブルシューティングシナリオでのみ有効にすることをお勧めします。データ取り込みの標準料金が適用されます。
セルフインストルメンテーションはデフォルトで無効になっています。有効にするには、構成オプションself_instrumentationを使用します。
self_instrumentation: "newrelic"
self_instrumentation
が有効になると、エージェントは自身に関するメトリックを報告し、新しいアプリケーションNew Relic Infrastructure Agent
がNew RelicAPMUIに表示されます。
New Relic Infrastructure Agent
アプリケーションにアクセスすると、次のデータが表示されます。
- ランタイムに移動(CPU、メモリ...)
- トランザクション(サンプラー、統合、https post ...)
エージェントの内部イベントキュー使用率と統合ペイロードに関するカスタムメトリックを表示するには、次のダッシュボードをインポートできます。
ヒント
以下の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 } } } ] } ]}