-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Use different stats of basicstats based on inputs #9170
Comments
It seems that I want to do what's described in this issue : #3413 The thing is, I did not find the way to do what was asked. I tried to differentiate my fields like this :
And I used the fieldpass parameter in basicstats, then renamed my fields :
It works but I have now conflicts with other metrics
I have this (telegraf --input-filter=snmp -config telegraf.conf --test) :
It gives me (telegraf --input-filter=snmp -config telegraf.conf --test) :
I could not find from the basicstats documentation the way to do this.
|
I managed to solve this issue, it was simply a syntax error. For the Basicstats problem, I used this syntax :
It is important to put the tagpass at the end of the aggregator, as written in the global documentation. I found the Order command pretty useful to solve some of my issues too. |
Hello,
I'd like to use the basicstat aggregator to get different metrics form different SNMP inputs.
System Info
Ubuntu 20.04
Telegraf 1.18.1 (git: HEAD d3ac9a3)
Relevant telegraf configuration
For example I have two SNMP inputs configured like this
The result of telegraf --input-filter=snmp -config telegraf.d/test.conf --test is :
Expected behaviour
I could not find out the best way to keep watts_max as watts for the idrac-esx host and watts_sum as watts for the idrac_switchs host. I tried using 2 aggregators and tagexclude with the "type" tag but it did not work.
If you have any idea, that would be great !
Thanks a lot
The text was updated successfully, but these errors were encountered: