Hey guys, can you please let me know which method are you using to graph interface traffic based on a interface description. Or maybe the better question is now did you managed to corelate the tag of the description with the interface traffic. I am using [[inputs.jti_openconfig_telemetry]].
So I have successfully converted the field /interfaces/interface/subinterfaces/subinterface/state/description to tag, unfortunately when I try to query by some description I am not getting any result:
SELECT "/interfaces/interface/subinterfaces/subinterface/state/counters/out-pkts" from /interfaces/ where "/interfaces/interface/subinterfaces/subinterface/state/description" = 'some_description'
But I do see them as tag values:
show tag keys
name: /interfaces/
tagKey
/interfaces/interface/subinterfaces/subinterface/state/description
show tag values with key = "/interfaces/interface/subinterfaces/subinterface/state/description"
(gives all descriptions)
To convert the field into a tag I used the processors.converter:
Convert values to another metric value type
[[processors.converter]]
Tags to convert
The table key determines the target type, and the array of key-values
select the keys to convert. The array may contain globs.
= [...]
[processors.converter.tags]
string = []
integer = []
unsigned = []
boolean = []
float = []
#
Fields to convert
The table key determines the target type, and the array of key-values
select the keys to convert. The array may contain globs.
= [...]
[processors.converter.fields]
tag = ["/interfaces/interface/subinterfaces/subinterface/state/description"]
Hey guys, can you please let me know which method are you using to graph interface traffic based on a interface description. Or maybe the better question is now did you managed to corelate the tag of the description with the interface traffic. I am using [[inputs.jti_openconfig_telemetry]].
So I have successfully converted the field /interfaces/interface/subinterfaces/subinterface/state/description to tag, unfortunately when I try to query by some description I am not getting any result:
SELECT "/interfaces/interface/subinterfaces/subinterface/state/counters/out-pkts" from /interfaces/ where "/interfaces/interface/subinterfaces/subinterface/state/description" = 'some_description'
But I do see them as tag values:
show tag keys name: /interfaces/ tagKey /interfaces/interface/subinterfaces/subinterface/state/description
show tag values with key = "/interfaces/interface/subinterfaces/subinterface/state/description" (gives all descriptions)
To convert the field into a tag I used the processors.converter:
Convert values to another metric value type
[[processors.converter]]
Tags to convert
The table key determines the target type, and the array of key-values
select the keys to convert. The array may contain globs.
[processors.converter.tags]
string = []
integer = []
unsigned = []
boolean = []
float = []
#
Fields to convert
The table key determines the target type, and the array of key-values
select the keys to convert. The array may contain globs.
[processors.converter.fields] tag = ["/interfaces/interface/subinterfaces/subinterface/state/description"]
string = []
integer = []
unsigned = []
boolean = []
float = []