サーバープロセスのメトリック
コントローラでサーバープロセスのメトリックにアクセスするには、[] > [] >(サーバーをダブルクリック)> [] と選択します。
Splunk AppDynamics でモニターするプロセス、それらのプロセスのグループ化方法、モニターするプロセスの数、およびそれらのプロセスをモニターする前に稼働させる必要がある時間を設定できます。サーバの可視性のためのマシンエージェントの設定 サーバの可視性のためのマシンエージェントの設定
[Server Processes] タブでは、次のことができます。
- 選択した期間中にアクティブなすべてのプロセスを表示する。プロセスは、
ServerMonitoring.ymlファイルでの指定に従いクラス別にグループ化されます。 - [] 列内のプロセスエントリにカーソルを合わせて、このプロセスを開始した完全なコマンドラインを表示する。
- プロセスクラスを展開して、そのクラスに関連付けられているプロセスを表示する。
- [View Options] を使用して、チャートに表示する列を設定する。
- 表示されるメトリックの期間を変更する。
- 列をソートキーとして使用してチャートをソートする。スパークラインチャートの [CPU Trend] または [Memory Trend] ではソートできません。
- CPU とメモリの使用傾向を確認する。
Metrics for Server Processes
The following information displays for each monitored class and process:
Default Columns
- Class: The process class.
- Count: The number of processes in this class.
- Command Line: The command that began the process.
- State: An icon represents the process state: sleeping, running, terminated, zombie or multiple. Hover over the icon to discover its state. The State column displays a question mark when there is more than one process associated with the class. Expand the class to review the state of the related processes.
- Effective User: The name of the user account that started the process.
- Start Time: The time, as set on the Controller machine, when the process started.
- End Time: The time, as set on the Controller machine, when the process ended.
- CPU (%): The percentage of CPU resources by all processes in this class.
- CPU Trend: A chart that shows CPU usage over the selected time period.
- Memory (%): The percentage of memory resources by all processes in this class.
- Memory Trend: A chart that shows memory usage over the selected time period.
- PID: Process ID.
- PPID: ID of the parent process.
OS-Specific Columns
The column information is specific to processes monitored on a Linux server.
- pgid: Process group ID.
- Real Group: The process real group ID.
- Real User: The process real user ID.
- Effective Group: The user ID the kernel uses to determine the process permissions when using shared resources such as: message queues, shared memory, and semaphores.
- Nice Level: The priority used to indicate the amount of CPU to afford the process or the process priority, where -20 is the highest priority, and 19 or 20, is the lowest priority.
Windows Process Collection Configuration
When too many processes slow down the performance of the Machine Agent on Windows, you must adjust the system environment variables to accommodate. Specifically, in relation to Windows-based operating systems supported by Splunk AppDynamics, see System Requirements.
Microsoft Windows process collection is enabled by default in the Controller and is missing the Effective User value due to performance issues. To retrieve the Effective User value, set the APPDYNAMICS_ENABLE_PROCESS_OWNER_INFORMATION environment variable. Although you can retrieve this information, this will most likely slow your process collection and may lead to additional issues, such as high CPU usage and the failure to report metrics. To disable process collection, set the APPDYNAMICS_MACHINE_AGENT_STOP_PROCESS_COLLECTION to speed up your performance at the expense of losing process metrics and metadata.
Windows System Environment Variables
This information is specific to processes monitored on a Windows server.
- Default:: Retrieve all Windows processes and metadata. Starting with Machine Agent 4.5.4, Effective User information is excluded by default to improve performance.
APPDYNAMICS_ENABLE_PROCESS_OWNER_INFORMATION: Retrieve all Windows processes and metadata, including the Effective User, but the Machine Agent may experience performance issues. This is available starting with Machine Agent 4.5.4.APPDYNAMICS_MACHINE_AGENT_STOP_PROCESS_COLLECTION: Stops all Windows process metrics and metadata collection, but improves Machine Agent performance. If you set this variable, then theAPPDYNAMICS_ENABLE_PROCESS_OWNER_INFORMATIONvariable is ignored. This is available starting with Machine Agent 4.4.0.
You must restart the Machine Agent for these changes to take effect.
サーバーの可視性におけるプロセス状態変更のアラート
サーバーの可視性により、プロセスの状態はメトリックブラウザに [State] として表示されます。
-
構成ファイルのプロパティ:
conf/controller-info.xmlファイルに次のプロパティを追加します。<process-metrics-enabled>true</process-metrics-enabled> -
システムプロパティ:アプリケーションを起動するときにシステムプロパティを設定します。
-Dappdynamics.machine.agent.process.metrics.enabled=true -
環境変数:環境変数をエクスポートします。
export APPDYNAMICS_MACHINE_AGENT_PROCESS_METRICS_ENABLED=true
| 状態 | 値 |
|---|---|
| 実行中 | 0 |
| スリープ中 | 1 |
| ゾンビ | 2 |
| TERMINATED | 3 |
| UNKNOWN | 4 |
- [] に移動します。
- [+] をクリックして新しい正常性ルールを作成します。
- [Conditions] セクションで、[Add Condition] をクリックします。条件タイプを [Metric] に設定します。詳細については、「条件の設定」を参照してください。
- メトリックパスを指定します。例:
Hardware Resources|Process|<Process Class> |<Process PID> |状態。これは通常、サーバーの設定時に [Server Process Metrics] の下にあります。 - 値が目的の状態に達したときにトリガー条件を設定します。
- [Evaluation for No Data] では、メトリックでデータが報告されない場合(
-1で表される場合)も、重大な違反がすでにトリガーされている場合は、その違反がアクティブなままになるようにするオプションを選択します。違反がアクティブでデータがない場合、システムは正常と見なす必要があります。この設定により、違反は-1の値の期間中持続します。 - オプションで、[Warning Criteria] セクションで警告を設定します。この正常性ルールについては、デフォルトの設定をそのままにするか、警告条件を削除することができます。
- [Health Rule Schedule] セクションで、正常性ルールをアクティブにするタイミングを定義します。
- この正常性ルールに違反した場合に実行するアクション(電子メールの送信、カスタムアクションのトリガー、インシデントの作成など)を設定します。
- すべての構成設定を確認します。
- [Save] をクリックして、正常性ルールを作成して有効にします。