The basis of each example of using the EXTEND rule is the mutually exclusive include and exclude fields.
Example 1. Extension of the data table by all new metrics, except those indicated.
Purpose: to save network traffic.
In the Monitoring section, configure the HTTP-request probe.
For us, it is enough to know "Send the response body" switcher significantly save network traffic. , we canand . If we neglect to update the metric and the
In the data forming rules, specify the table extension with all new metrics except .
Example 2. Combining include and exclude.
Suppose, in the Monitoring section a probe is configured, for which all metrics could not be collected. This can occur when transmitting data over a protocol that does not imply a guaranteed response from the server — UDP. Metrics for which data is missing are automatically deleted from the data table.
For example, in the "smart home" project the sensors of motion and door openings are monitored. The server received data only from the motion sensor and displayed in the Data Table. In order for the metric not to be deleted, it is necessary to extend the table of actual values with a metric with a pointer to outdated data (last_) and to overwrite the last received data into it.