Restores a previously removed field to a telemetry profile.
All default fields are included in the telemetry profile.
Telemetry profile configuration mode
Use the no add command to remove a field.
The following example adds the add-discard-byte-count field to the default_queue_statistics profile.
device# configure terminal device(config)# telemetry profile queue default_queue_statistics device(config-queue-default_queue_statistics)# add add-discard-byte-count
The following example adds the max-queue-depth field to the default_enhanced_queue_max_queue_depth_statistics profile.
device# configure terminal device(config)# telemetry profile enhanced-queue-max-queue-depth default_enhanced_queue_max_queue_depth_statistics device(config-enhanced-queue-max-queue-depth-default_enhanced_queue_max_queue_depth_statistics)# add max-queue-depth
The following example removes the max-queue-depth field from the default_enhanced_queue_max_queue_depth_statistics profile.
device# configure terminal device(config)# telemetry profile enhanced-queue-max-queue-depth default_enhanced_queue_max_queue_depth_statistics device(config-enhanced-queue-max-queue-depth-default_enhanced_queue_max_queue_depth_statistics)# no add max-queue-depth
You must change profile configuration modes to change fields in another profile. Below is an example of adding fields to multiple profiles.
device# configure terminal device(config)# telemetry profile interface default_interface_statistics device(config-interface-default_interface_statistics)# add out-pkts device(config-interface-default_interface_statistics)# exit device(config)# telemetry profile queue default_queue_statistics device(config-queue-default_queue_statistics)# add enq-byte-count device(config-queue-default_queue_statistics)# add enq-pkt-count
The following example adds the out-packets and out-bytes fields to the default_mpls_traffic_lsp_statistics profile.
device(config)# telemetry profile mpls-traffic-lsp default_mpls_traffic_lsp_statistics device(config-mpls-traffic-lsp-default_mpls_traffic_lsp_statistics)# add out-packets device(config-mpls-traffic-lsp-default_mpls_traffic_lsp_statistics)# add out-bytes