diff --git a/plugins/inputs/gnmi/README.md b/plugins/inputs/gnmi/README.md index 90082287d..dcb6cabe7 100644 --- a/plugins/inputs/gnmi/README.md +++ b/plugins/inputs/gnmi/README.md @@ -11,6 +11,9 @@ It has been optimized to support gNMI telemetry as produced by Cisco IOS XR [1]: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md +Please check the [troubleshooting section](#troubleshooting) in case of +problems, e.g. when getting an *empty metric-name warning*! + ## Service Input This plugin is a service input. Normal plugins gather metrics determined by the @@ -153,3 +156,33 @@ measurement. GNMI PathElement keys for leaves will attach tags to the field(s). ifcounters,path=openconfig-interfaces:/interfaces/interface/state/counters,host=linux,name=MgmtEth0/RP0/CPU0/0,source=10.49.234.115,descr/description=Foo in-multicast-pkts=0i,out-multicast-pkts=0i,out-errors=0i,out-discards=0i,in-broadcast-pkts=0i,out-broadcast-pkts=0i,in-discards=0i,in-unknown-protos=0i,in-errors=0i,out-unicast-pkts=0i,in-octets=0i,out-octets=0i,last-clear="2019-05-22T16:53:21Z",in-unicast-pkts=0i 1559145777425000000 ifcounters,path=openconfig-interfaces:/interfaces/interface/state/counters,host=linux,name=GigabitEthernet0/0/0/0,source=10.49.234.115,descr/description=Bar out-multicast-pkts=0i,out-broadcast-pkts=0i,in-errors=0i,out-errors=0i,in-discards=0i,out-octets=0i,in-unknown-protos=0i,in-unicast-pkts=0i,in-octets=0i,in-multicast-pkts=0i,in-broadcast-pkts=0i,last-clear="2019-05-22T16:54:50Z",out-unicast-pkts=0i,out-discards=0i 1559145777425000000 ``` + +## Troubleshooting + +Some devices (e.g. Juniper) report spurious data with response paths not +corresponding to any subscription. In those cases, Telegraf will not be able +to determine the metric name for the response and you get an +*empty metric-name warning* + +For examplem if you subscribe to `/junos/system/linecard/cpu/memory` but the +corresponding response arrives with path +`/components/component/properties/property/...` To avoid those issues, you can +manually map the response to a metric name using the `aliases` option like + +```toml +[[inputs.gnmi]] + addresses = ["..."] + + [inputs.gnmi.aliases] + memory = "/components" + + [[inputs.gnmi.subscription]] + name = "memory" + origin = "openconfig" + path = "/junos/system/linecard/cpu/memory" + subscription_mode = "sample" + sample_interval = "60s" +``` + +If this does *not* solve the issue, please follow the warning instructions and +open an issue with the response, your configuration and the metric you expect. diff --git a/plugins/inputs/gnmi/testcases/issue_13052/expected.out b/plugins/inputs/gnmi/testcases/issue_13052/expected.out new file mode 100644 index 000000000..9dcb33213 --- /dev/null +++ b/plugins/inputs/gnmi/testcases/issue_13052/expected.out @@ -0,0 +1,119 @@ +components,/components/component/properties/property/name=mem-util-kernel-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=671088216u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=187929304u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=28i 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifd-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=97240u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifd-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=442u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifd-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifd-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifl-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=95272u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifl-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=132u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifl-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-ifl-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-iff-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=38640u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-iff-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=178u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-iff-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-iff-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=82592u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=914609u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=914255u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rtt-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=7212u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rtt-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=25u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rtt-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rtt-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-nh-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=180544u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-nh-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=519u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-nh-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=21u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-nh-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-filter-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=144380u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-filter-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2674u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-filter-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=739u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-filter-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=41488u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=383u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=53u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-halp-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=482008u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-halp-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=102u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-halp-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-cos-halp-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-mac-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=20u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-mac-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-mac-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-rt-mac-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpdl-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=364u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpdl-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=16u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpdl-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=9u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpdl-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=56u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=104u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-agent-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=19548u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-agent-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1679742u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-agent-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1679691u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-agent-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-an-stats-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=5503680u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-an-stats-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=10192u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-an-stats-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-an-stats-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=72u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=12u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=6u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=95436u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2812u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1435u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=33920u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=546u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=448u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=40u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=24u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=9216u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=62u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=24u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=49172u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2257u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1140u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=72u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=372008u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4444u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1628u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=192544u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=600u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=240u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=984u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=83u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=92u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=3u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-dma-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=67108864u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-dma-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4655312u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-dma-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=6i 1688641479762000000 +components,/components/component/properties/property/name=mem-util-pkt-dma-desc-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=12582912u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-pkt-dma-desc-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=10257712u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-pkt-dma-desc-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=81i 1688641479762000000 +components,/components/component/properties/property/name=mem-util-bcm-sdk-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=268435456u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-bcm-sdk-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=157163104u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-bcm-sdk-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=58i 1688641479762000000 +components,/components/component/properties/property/name=mem-util-packet-dma-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=113246208u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-packet-dma-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=56030424u 1688641479762000000 +components,/components/component/properties/property/name=mem-util-packet-dma-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=49i 1688641479762000000 diff --git a/plugins/inputs/gnmi/testcases/issue_13052/responses.json b/plugins/inputs/gnmi/testcases/issue_13052/responses.json new file mode 100644 index 000000000..003f4d65c --- /dev/null +++ b/plugins/inputs/gnmi/testcases/issue_13052/responses.json @@ -0,0 +1,2524 @@ +[ + { + "update": { + "timestamp": "1688641479762000000", + "prefix": { + "elem": [ + { + "name": "components" + }, + { + "name": "component", + "key": { + "name": "FPC0:CPU0" + } + }, + { + "name": "properties" + } + ] + }, + "update": [ + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-size" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "671088216" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "187929304" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-utilization" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "intVal": "28" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifd-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "97240" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifd-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "442" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifd-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifd-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifl-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "95272" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifl-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "132" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifl-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-ifl-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-iff-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "38640" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-iff-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "178" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-iff-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-iff-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "82592" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "914609" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "914255" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rtt-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "7212" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rtt-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "25" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rtt-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rtt-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-nh-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "180544" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-nh-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "519" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-nh-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "21" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-nh-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-filter-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "144380" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-filter-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "2674" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-filter-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "739" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-filter-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "41488" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "383" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "53" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-halp-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "482008" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-halp-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "102" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-halp-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-cos-halp-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-mac-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "20" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-mac-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "1" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-mac-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-rt-mac-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpdl-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "364" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpdl-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "16" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpdl-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "9" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpdl-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "56" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "4" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "2" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-syms-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "104" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-syms-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "4" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-syms-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "2" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-fpb-syms-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-agent-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "19548" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-agent-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "1679742" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-agent-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "1679691" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-agent-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-an-stats-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "5503680" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-an-stats-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "10192" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-an-stats-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-an-stats-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-resolve-bind-point-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "72" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-resolve-bind-point-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "12" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-resolve-bind-point-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "6" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-resolve-bind-point-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-entry-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "95436" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-entry-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "2812" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-entry-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "1435" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-entry-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-tcam-entry-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "33920" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-tcam-entry-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "546" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-tcam-entry-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-tcam-entry-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-id-entry-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "448" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-id-entry-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "40" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-id-entry-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "24" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-id-entry-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-bmap-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "9216" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-bmap-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "62" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-bmap-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "24" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-bmap-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-hw-hdl-rule-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "49172" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-hw-hdl-rule-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "2257" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-hw-hdl-rule-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "1140" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-hw-hdl-rule-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-lagmatch-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "72" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-lagmatch-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "2" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-lagmatch-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-lagmatch-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-cntr-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "372008" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-cntr-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "4444" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-cntr-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "1628" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-cntr-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-policer-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "192544" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-policer-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "600" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-policer-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "240" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-policer-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-misc-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "984" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-misc-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "83" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-misc-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "1" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-dfw-misc-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-halp-unknown-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "92" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-halp-unknown-allocations" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "3" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-halp-unknown-frees" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "2" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-kernel-halp-unknown-allocations-failed" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "0" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-dma-size" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "67108864" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-dma-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "4655312" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-dma-utilization" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "intVal": "6" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-pkt-dma-desc-size" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "12582912" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-pkt-dma-desc-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "10257712" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-pkt-dma-desc-utilization" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "intVal": "81" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-bcm-sdk-size" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "268435456" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-bcm-sdk-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "157163104" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-bcm-sdk-utilization" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "intVal": "58" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-packet-dma-size" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "113246208" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-packet-dma-bytes-allocated" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "uintVal": "56030424" + } + }, + { + "path": { + "elem": [ + { + "name": "property", + "key": { + "name": "mem-util-packet-dma-utilization" + } + }, + { + "name": "state" + }, + { + "name": "value" + } + ] + }, + "val": { + "intVal": "49" + } + } + ] + } + } +] \ No newline at end of file diff --git a/plugins/inputs/gnmi/testcases/issue_13052/telegraf.conf b/plugins/inputs/gnmi/testcases/issue_13052/telegraf.conf new file mode 100644 index 000000000..fd70aaca6 --- /dev/null +++ b/plugins/inputs/gnmi/testcases/issue_13052/telegraf.conf @@ -0,0 +1,13 @@ +[[inputs.gnmi]] + addresses = ["dummy"] + redial = "10s" + + [inputs.gnmi.aliases] + components = "/components" + + [[inputs.gnmi.subscription]] + name = "memory" + origin = "openconfig" + path = "/junos/system/linecard/cpu/memory" + subscription_mode = "sample" + sample_interval = "60s" \ No newline at end of file