• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は参考用に提供されます。

英語版と翻訳版に矛盾がある場合は、英語版が優先されます。詳細については、このページ を参照してください。

問題を作成する

オンホスト統合を手動で実行する (ドライラン)

問題

オンホスト統合が期待どおりに構成され、メトリクスを収集しているかどうかを知りたいと考えています。診断するには、インフラストラクチャ エージェントでドライラン フラグを使用するか、統合を手動で実行します。

解決

統合の予行演習

インフラストラクチャ エージェント バージョン 1.27.0 以降では、トラブルシューティングのために予行演習モードで統合を実行できます。このモードでは、エージェントは提供された構成から統合を実行し、統合出力を標準出力に出力します。

このモードは、単一の構成ファイルまたは複数の構成ファイルを含むフォルダーをサポートします。

ドライラン フラグ:

/usr/bin/newrelic-infra -dry_run -integration_config_path PATH_TO_FILE_OR_DIR

例: 単一の統合ファイルのテスト:

/usr/bin/newrelic-infra -dry_run -integration_config_path /any/absolute/path/mysql-config.yml

例: デバッグ ログを使用して単一の統合ファイルをテストする:

NRIA_LOG_LEVEL=trace /usr/bin/newrelic-infra -dry_run -integration_config_path /any/absolute/path/mysql-config.yml

例: フォルダー内のすべてのファイルをテストする:

/usr/bin/newrelic-infra -dry_run -integration_config_path /any/absolute/path

統合の実行ごとに、コマンドは統合の名前とその出力を出力します。

----------
Integration Name: nri-mysql
Integration Output: {"name":"com.newrelic.mysql","protocol_version":"3","integration_version":"1.8.0","data":[{"entity":{"name":"localhost:3309","type":"node","id_attributes":[]},"metrics":[{"cluster.nodeType":"master","db.handlerRollbackPerSecond":0,"db.innodb.bufferPoolPagesData":1139,"db.innodb.bufferPoolPagesFree":7049,"db.innodb.bufferPoolPagesTotal":8192,"db.innodb.dataReadBytesPerSecond":0,"db.innodb.dataWrittenBytesPerSecond":0,"db.innodb.logWaitsPerSecond":0,"db.innodb.rowLockCurrentWaits"...

複数のファイルを実行する場合、異なる統合出力は次のように区切られます。 ----------

----------
Integration Name: nri-mysql
Integration Output: {"name":"com.newrelic.mysql","protocol_version":"3","integration_version":"1.8.0","data":...
----------
Integration Name: nri-ibmmq
Integration Output: {"protocol_version":"4","integration":{"name":"nri-ibmmq","version":"0.0.2"},"data":....

手動実行

統合機能を手動で実行するには、以下のコマンドを使用します。

すべての統合で、以下のオプションが可能です。

-help: 許可されたパラメータのリストを表示します

-pretty: きれいにフォーマットされた JSON を出力します

Copyright © 2024 New Relic株式会社。

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