エージェント側のコンポーネントのインストール
ほとんどのアプリケーション分析の展開シナリオで、Analytics エージェント側のコンポーネントを有効にする必要があります。エージェントは、システムベースのオペレーションまたはスタンドアロンのバンドルとして、ダウンロードポータルで配布されます。
Java エージェントアプリケーション サーバー エージェントが (21.2 以降)および (20.10 以降)などのエージェントレス分析をサポートしている場合、トランザクション分析データ収集のためにスタンドアロンの分析エージェントまたはマシンエージェント拡張機能をインストールする必要はありません。 詳細については、「分析エージェント({0})を使用しない分析の展開」を参照してください。
エージェントを有効にするための準備
「 Analytics エージェントを使用した分析の展開」で展開オプション、エージェント側コンポーネントのアーキテクチャを確認して、インストールする必要があるコンポーネントを確認します。
Analytics Agent
The Analytics Agent collects and sends data from the Splunk AppDynamics App Agent and log files to the Events Service. The Analytics Agent is not enabled by default. You need to download and enable the desired bundle using a method of your choice.
debug/grok endpoint is disabled by default. To enable the endpoint, start the Analytics Agent with the property ad.debug.grok.endpoint.enabled=true in agent.properties file.To use Application Analytics:
- Obtain a separate Application Analytics license.
- Enable the Analytics Agent.
- Point to the Event Service. See Revise the Analytics Agent Properties File for agent-specific configuration and Event Service Deployment for the Event Service.
- Enable Analytics on the Controller.
Splunk AppDynamics App Agent
To access Analytics and collect transaction data from an application, you must deploy a supported app server agent version in all environments, such as the Node.js Agent or the PHP Agent. If you already use Splunk AppDynamics APM, agents may already be installed in your environment.
Windows でのスタンドアロン Analytics エージェントのインストール
「Analytics のデプロイオプション」で説明したように、Analytics エージェントは、使用ケースに応じて、アプリケーション サーバ エージェントと同じホストまたは別のホストで実行できます。
ダウンロードポータルには、次の配布アーカイブが用意されています。
- スタンドアロン Analytics エージェント(JRE なし)
- 32 ビットと 64 ビットの両方の Windows マシン用の Analytics エージェント(JRE 1.8 付属)
icacls . /inheritance:r /grant Users:(OI)(CI)RX /grant Administrators:(OI)(CI)FAnalytics エージェントのプロパティファイルの変更
デフォルト設定を変更し、プロパティファイルのエージェントプロパティに必要な値を設定します。実際の展開シナリオによっては、このファイルの場所は異なります。
Start and Stop the Analytics Agent
To start/stop the Analytics Agent on Windows, run the following commands in the Windows Services menu.
To start the agent, run:
bin\analytics-agent.exe service-startTo stop the agent, run:
bin\analytics-agent.exe service-stopUninstall the Analytics Agent
To uninstall the Analytics Agent, run the .exe uninstall
bin\analytics-agent.exe service-uninstallEnable Analytics Agent for a Local App Server Agent
This section assumes that you are installing the Analytics Agent on the same host as your app server agent.
In this deployment, the Analytics Agent reads and transmits log data in log files from the local machine. The app server agent transmits data from the monitored application to the Analytics Agent.
Analytics Agent with the .exe and analytics-agent.exe files found in the <analytics-agent-home>/bin directory. Because the Analytics Agent is written in Java, you will run the agent in a Java Virtual Machine (JVM). The Analytics Agent runs as a Windows service.
Enable the App Server Agent for a Remote Analytics Agent
To specify the location of the remote Analytics Agent with an environment variable named appdynamics.analytics.agent.url on Windows:
Linux でのスタンドアロン Analytics エージェントのインストール
「Analytics のデプロイオプション」で説明したように、Analytics エージェントは、使用ケースに応じて、アプリケーション サーバ エージェントと同じホストまたは別のホストで実行できます。
ダウンロードポータルには、次の配布アーカイブが用意されています。
- スタンドアロン Analytics エージェント(JRE なし)
アプリケーション サーバ エージェントのデフォルト設定では、通常、Analytics エージェントが同じホスト上にあり、デフォルトポートを使用していると想定されます。次の図に示すように、アプリケーション サーバ エージェントとは別のホストに Analytics エージェントが存在する場合、またはデフォルトポートを変更した場合は、アプリケーション サーバ エージェントの新しいホストとポートの値を指定する必要があります。
Revise the Analytics Agent Properties File
The Analytics Agent properties file determine how your Analytics Agent communicate with other components, what type of data it gathers from the monitored application, and how the components of the Application Analytics deployment and the Controller authenticate to each other.
Modify the default configuration and set the desired values for the agent properties in the properties file. The location of this file depends on your exact deployment scenario.
- Open the
<analytics-agent-home>/conf/analytics-agent.propertiesfile with a text editor. - Follow the instructions to enable the standalone Analytics Agent.
Start and Stop the Analytics Agent
You can start and stop the Analytics Agent directly in the command line.
To start the agent, run:
<analytics agent executable> startTo stop the agent, run:
<analytics agent executable> stopRun the Analytics Agent From a Read-Only Filesystem
In this deployment, the Analytics Agent is installed and run from a read-only filesystem. To do so, you need to direct the Analytics Agent to write its log files to a writable partition.
By creating a directory for the Analytics Agent in a writable file system and symlinks for the content of the Analytics Agent in the read-only file system, you will have a writable top-level directory for the Analytics Agent and a writable logs directory under the top-level directory.
To run the Analytics Agent from a separate writable directory using artifacts from a read-only directory:
Enable the App Server Agent for a Remote Analytics Agent
For most configurations, install the Analytics Agent on the same machine as the app server agent. In certain setups, such as installing an Analytics Agent extension, you will need a separate machine.
スタンドアロン Analytics エージェントの有効化
この展開では、Analytics エージェントとアプリケーション サーバ エージェントが同じマシン上で実行されます。Analytics エージェントは、ホストマシン上のログファイルからログデータを読み取り、送信します。アプリケーション サーバ エージェントは、監視対象アプリケーションから Analytics エージェントにデータを送信します。
マシンエージェントがインストールされていない環境の場合、Analytics エージェントを個別のバイナリとしてインストールします(analytics-agent.sh)。
マシンエージェントの拡張としての Analytics エージェントの有効化
このセクションでは、Analytics エージェントをマシンエージェントの拡張機能として設定し、マシンエージェントモニタとして実行する方法について説明します。
ダウンロードポータルには、次の配布アーカイブが用意されています。
- マシンエージェントバンドル:64 ビット osx(zip)
- マシンエージェントバンドル:32 ビットと 64 ビットの両方の Linux マシン用(rpm)
- マシンエージェントバンドル:32 ビットと 64 ビットの両方の Linux マシン用(zip)
- マシンエージェントバンドル:64 ビット solaris 用(zip)
- マシンエージェントバンドル:64 ビット solaris-sparcv9 用(zip)
- マシンエージェントバンドル:64 ビット solaris-x64 用(zip)
- マシンエージェントバンドル:32 ビットと 64 ビットの両方の Windows マシン用(zip)
マシンエージェントとアプリケーション サーバ エージェントが同じマシンで実行されている場合は、スタンドアロン Analytics エージェントをインストールする必要はありません。マシンエージェントがすでに実行されている環境では、Analytics エージェントを拡張機能として有効にして実行できます。
マシンエージェントを実行しているホストに JRE 8 以降がインストールされていることを確認します。必要なバージョンの JRE がホストで使用できない場合、Analytics エージェントは有効にできません。
「プロキシ経由でエージェントをイベントに接続する」を参照してください
.Analytics エージェントの調整
このセクションでは、Analytics エージェントのインストール後の設定(プロキシサーバを使用してイベントサービスに接続するための Analytics エージェントの設定、統合ログ管理(CLM)を使用したログファイルの収集、リソース使用制限の設定、JVM オプションの変更)について説明します。
Connect to the Events Service through a Proxy
If the Analytics Agent needs to connect to the Events Service through a proxy server:
統合ログ管理用の Analytics エージェントの設定
Analytics エージェントが CLM と連携するようにするには、Analytics エージェントのプロパティファイルでいくつかのプロパティを設定する必要があります。
analytics-agent.properties ファイルで、コントローラの URL、顧客名、および Analytics エージェントの名前を指定します。顧客名は、コントローラの [View License] UI で確認できます。
CLM を使用してソースルールによりログファイルを設定する場合は、これらのプロパティに正しい値を指定する必要があります。
デフォルト値は次のとおりです。
# Format should be http://<host>:<port>
ad.controller.url=http://localhost:8090
# The customer name field from the AppDynamics license page.
http.event.name=customer1
# This is the friendly agent name that will show up in the controller when the agent registers and syncs configuration.
ad.agent.name=analytics-agent1Change Java Virtual Machine Options
If you need to change any JVM startup options, modify <analytics-agent-home>/conf/analytics-agent.vmoptions with a text editor.
The vmoptions file name is read from the ad.jvm.options.name=analytics-agent.vmoptions properties file. If you change the vmoptions file name, you will need to change the ad.jvm.options.name property as well.
If the Analytics Agent Windows service is installed and you need to change the properties file or the vmoptions file, you need to uninstall the service and reinstall it for the changes to take effect.
リソース使用の制限の設定
リソースの使用を制限するために、単一の Analytics エージェントのジョブ数に対するデフォルトの制限を有効にできます。
この制限は上書きできますが、CPU 使用率、ディスク、ネットワーク I/O などのリソースの使用に対する潜在的な影響を十分に理解していない場合はお勧めしません。
このプロパティは ad.max.enabled.jobs で、<analytics-agent-home>/conf/analytics-agent.properties ファイルにあります。デフォルトでは、ad.max.enabled.jobs は 20 に設定されています。
Verify Analytics Agent Status
To verify that the Analytics Agent has started, look for the following entry in the App Agent log file: Started [Analytics] collector
To connect to the Events Service through a proxy server, see Connect the Agent to the Events Service through a Proxy.
その他の設定
Analytics エージェントのバージョンが 21.7 以降の場合、パイプラインリソースに認証を追加できます。次の手順を実行します。
コントローラおよびイベントサービスへのエージェント接続用 TLS の設定
デフォルトでは、Analytics エージェントは TLS 1.2 を使用します。コントローラとイベントサービスも同じ TLS バージョンを使用していることを確認します。別のバージョン(TLS 1.3 など)を設定するには、conf/analytics-agent.properties ファイルで ad.http.tls.version=TLSv1.3 を指定します。「Analytics エージェントのプロパティファイルの変更」を参照してください。
TLS 1.3 を使用する場合は、基盤となる JDK に次のバージョンを使用する必要があります。
-
- HP-UX の場合:1.8.0.26-hp-ux 以降
-
AIX の場合:1.8.0_381 以降
- その他の場合:jdk8_261 より後
-
使用している基盤となる JDK で TLS 1.3 がサポートされていない場合、ログメッセージに次のエラーが表示されます。
エラーNoSuchAlgorithmException: TLSv1.3 SSLContext not availableこのエラーを解決するには、上記の JDK を使用するか、TLS 1.2 を設定する必要があります。TLS 1.2 を設定するには、
conf/analytics-agent.propertiesファイルでad.http.tls.version=TLSv1.2を指定します。「Analytics エージェントのプロパティファイルの変更」を参照してください。
トラブルシューティングのヒント
analytics-agent.propertiesのプロパティが正しく設定されていることを確認します。「有効なジョブファイルの制限」を参照してください。- JRE バージョンが 1.7 以降であること、および環境で
JAVA_HOME変数が設定されていることを確認します。 analytics-agent/conf/analytics-agent.vmoptionsのすべてのプロパティは JRE と互換性があります。