System Metrics
Supported pipeline types:
|
The System Metrics origin reads the metrics from the edge device at regular intervals, based on the amount of delay time between batches that you configure. For example, if you set the delay time to 10 minutes, then the origin creates a new batch containing the selected system metrics every 10 minutes.
Each batch contains a single record that includes the timestamp when the data was read and a map field for each selected system metric type. When you configure the origin, you select the types of system metrics to read - including host information and CPU, memory, disk, network, and process metrics.
For more information about installing SDC Edge, designing edge pipelines, and running and maintaining edge pipelines, see Edge Pipelines Overview.
Example
You want to collect, monitor, and analyze the system metrics of all of your edge devices.
You install SDC Edge on each edge device. You use Data Collector to design an edge sending pipeline that includes the System Metrics origin and an HTTP Client destination that posts the system metrics to an HTTP endpoint. You deploy the edge sending pipeline to all of the edge devices and then run the pipeline on each device.
You design a Data Collector receiving pipeline that includes an HTTP Server origin that reads the system metrics posted to the HTTP endpoint. After reading the metrics, the Data Collector receiving pipeline performs additional processing on the data and then writes the data to Elasticsearch for analysis of the metrics. You run the Data Collector receiving pipeline on Data Collector.
Collected System Metrics
The System Metrics origin uses the psutil package for the Go programming language (or Golang) to collect system metrics.
The values that the psutil package for Golang collects vary based on the operating system of the edge device. For a complete list of the metrics that the System Metrics origin collects for each operating system, run preview for the edge pipeline.
For example, the following image displays preview for a System Metrics origin configured to collect all system metrics types except for process metrics:
When we expand the hostInfo map field, preview displays the host information collected for a Linux operating system:
Filter Process Metrics
The System Metrics origin can read metrics from processes running on the edge device. When configured to read process metrics, the origin reads statistics for all running processes by default.
On the Process tab, you can filter the processes that the origin reads by the process name or command or by the user that owns the process. To filter by the process name or command, enter the process name or part of the process command in the Processes property. To filter by user, enter the user name for the User property.
.*
For example, to read statistics only for processes with names starting with "st", enter the following regular expression for the Processes property:
st.*
To read statistics only for processes owned by the root user, enter "root" for the User property.
For more information about using regular expressions with Data Collector, see Regular Expressions Overview.
Configuring a System Metrics Origin
Configure a Systems Metric origin to read system metrics from the edge device where SDC Edge is installed.