The sensor-path command configures the sampling path for a Telemetry sensor.
The undo sensor-path command deletes the sampling path of a Telemetry sensor.
The sensor-path self-defined-event command configures a Telemetry customized event.
The undo sensor-path self-defined-event command deletes a Telemetry customized event.
By default, no sampling path or Telemetry customized event is configured.
Parameter | Description | Value |
---|---|---|
path |
Specifies a sampling path name. For a sampling path that contains an interface name, Telemetry can add the filtering field [name=interface-type interface-number] to the sampling path, for example, huawei-ifm:ifm/interfaces/interface[name="GigabitEthernet0/1/1"].
Telemetry also supports fuzzy match for an interface name in a sampling path. An interface name must end with an asterisk (*) and contain only one asterisk (*). For example:
|
The value is a string of 1 to 511 case-sensitive characters. |
self-defined-event |
Specifies a Telemetry customized event. |
- |
Usage Scenario
To enable a sensor to sample specific data sources and filter specific data, run the sensor-path command to configure one or more sensor paths.
You can configure a Telemetry customized event. If a performance indicator of a resource object that Telemetry monitors exceeds the user-defined threshold, the customized event is reported to the collector in time for service policy determination.
Precautions
A maximum of 64 sampling paths can be configured for a sampling sensor group, including sampling paths configured using the sensor-path self-defined-event and sensor-path commands. When the number of sampling paths reaches the upper limit, the device displays a message indicating that the maximum number of paths is reached.
A sampling path name can be configured in a maximum of 10 sampling sensor groups at the same time. When the number of sampling paths reaches the upper limit, the device displays a message indicating that the maximum number of paths is reached.
<HUAWEI> system-view [~HUAWEI] telemetry [~HUAWEI-telemetry] sensor-group test [*HUAWEI-telemetry-sensor-group-test] sensor-path huawei-ifm:ifm/interfaces/interface
<HUAWEI> system-view [~HUAWEI] telemetry [~HUAWEI-telemetry] sensor-group test [*HUAWEI-telemetry-sensor-group-test] sensor-path huawei-ifm:ifm/interfaces/interface self-defined-event