- 重要な情報
- はじめに
- 用語集
- エージェント
- インテグレーション
- OpenTelemetry
- 開発者
- API
- CoScreen
- アプリ内
- インフラストラクチャー
- アプリケーションパフォーマンス
- 継続的インテグレーション
- ログ管理
- セキュリティ
- UX モニタリング
- 管理
Supported OS
プロセスチェックを使用して、以下のことができます。
プロセスチェックは Datadog Agent パッケージに含まれています。サーバーに追加でインストールする必要はありません。
他のチェックとは異なり、デフォルトのプロセスチェックは、特に役立つ監視を行いません。どのプロセスをどのように監視するかを構成する必要があります。
process.d/conf.yaml
の例を示します。使用可能なすべての構成オプションの詳細については、サンプル process.d/conf.yaml を参照してください。 init_config:
instances:
## @param name - 文字列 - 必須
## Datadog でこの名前でタグされるため、メトリクスを一意に識別するために使用されます。
#
- name: ssh
## @param search_string - 文字列のリスト - オプション
## リスト内の要素の 1 つが一致したら、文字列に完全一致する
## すべてのプロセス数をデフォルトで返します。この動作は、パラメーター
## `exact_match: false` で変更します。
##
## 注: search_string、pid、または pid_file のうち 1 つのみをインスタンスごとに正確に指定する必要があります。
#
search_string:
- ssh
- sshd
プロセスメトリクスによっては、Datadog コレクターを監視対象プロセスと同じユーザーとして実行するか、特権的なアクセスを取得する必要があります。前者のオプションが望ましくなく、Datadog Collector を `root` として実行することを避けるには、`try_sudo` オプションを使用して、プロセスチェックが `sudo` を使用してこのメトリクスを収集するようにします。現時点では、Unix プラットフォームの `open_file_descriptors` メトリクスだけがこの設定を利用しています。注: これが動作するには、適切な sudoers ルールを構成する必要があります。
dd-agent ALL=NOPASSWD: /bin/ls /proc/*/fd/
Agent の status サブコマンドを実行し、Checks セクションで process
を探します。
注: Linux または OSX では一部のメトリクスは使用できません。
/proc//io
) はプロセスのオーナーのみ読み取り可能であるため、Process I/O メトリクスは Linux または OSX では使用できません。詳しくは、Agent FAQ をご参照ください。system.cpu.iowait
は、Windows では使用できません。すべてのメトリクスは process.yaml で構成された instance
ごとに収集され、process_name:<instance_name>
のタグが付きます。
このチェックにより送信される system.processes.cpu.pct
メトリクスは、30 秒間以上存在する処理でのみ正確です。
それ以下の短い処理の場合、その値は正確でない場合があります。
メトリクスの完全なリストについては、メトリクスセクションを参照してください。
system.processes.cpu.pct (gauge) | The CPU utilization of a process. Shown as percent |
system.processes.cpu.normalized_pct (gauge) | The normalized CPU utilization of a process. Shown as percent |
system.processes.involuntary_ctx_switches (gauge) | The number of involuntary context switches performed by this process. Shown as event |
system.processes.ioread_bytes (gauge) | The number of bytes read from disk by this process. In Windows: the number of bytes read. Shown as byte |
system.processes.ioread_bytes_count (count) | The number of bytes read from disk by this process. In Windows: the number of bytes read. Shown as byte |
system.processes.ioread_count (gauge) | The number of disk reads by this process. In Windows: the number of reads by this process. Shown as read |
system.processes.iowrite_bytes (gauge) | The number of bytes written to disk by this process. In Windows: the number of bytes written by this process. Shown as byte |
system.processes.iowrite_bytes_count (count) | The number of bytes written to disk by this process. In Windows: the number of bytes written by this process. Shown as byte |
system.processes.iowrite_count (gauge) | The number of disk writes by this process. In Windows: the number of writes by this process. Shown as write |
system.processes.mem.page_faults.minor_faults (gauge) | The number of minor page faults per second for this process. Shown as occurrence |
system.processes.mem.page_faults.children_minor_faults (gauge) | The number of minor page faults per second for children of this process. Shown as occurrence |
system.processes.mem.page_faults.major_faults (gauge) | The number of major page faults per second for this process. Shown as occurrence |
system.processes.mem.page_faults.children_major_faults (gauge) | The number of major page faults per second for children of this process. Shown as occurrence |
system.processes.mem.pct (gauge) | The process memory consumption. Shown as percent |
system.processes.mem.real (gauge) | The non-swapped physical memory a process has used and cannot be shared with another process (Linux only). Shown as byte |
system.processes.mem.rss (gauge) | The non-swapped physical memory a process has used. aka "Resident Set Size". Shown as byte |
system.processes.mem.vms (gauge) | The total amount of virtual memory used by the process. aka "Virtual Memory Size". Shown as byte |
system.processes.number (gauge) | The number of processes. Shown as process |
system.processes.open_file_descriptors (gauge) | The number of file descriptors used by this process (only available for processes run as the dd-agent user) |
system.processes.open_handles (gauge) | The number of handles used by this process. |
system.processes.threads (gauge) | The number of threads used by this process. Shown as thread |
system.processes.voluntary_ctx_switches (gauge) | The number of voluntary context switches performed by this process. Shown as event |
system.processes.run_time.avg (gauge) | The average running time of all instances of this process Shown as second |
system.processes.run_time.max (gauge) | The longest running time of all instances of this process Shown as second |
system.processes.run_time.min (gauge) | The shortest running time of all instances of this process Shown as second |
プロセスチェックには、イベントは含まれません。
process.up
Returns OK if the check is within the warning thresholds, CRITICAL if it’s outside of the critical thresholds, and WARNING if it’s outside of the warning thresholds.
Statuses: ok, warning, critical
ご不明な点は、Datadog のサポートチームまでお問い合わせください。
プロセスのリソース消費を監視する方法 (または理由) について理解するには、このブログ記事を参照してください。