Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphing traffic on interface by interfaces description #268

Open
stefi994 opened this issue Nov 11, 2020 · 0 comments
Open

Graphing traffic on interface by interfaces description #268

stefi994 opened this issue Nov 11, 2020 · 0 comments

Comments

@stefi994
Copy link

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 = []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant