-
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
missing types in bind plugin #6094
Comments
Is |
Hey @glinton, as you can see in my |
@glinton maybe another question...you added the "feature request" label but is this really a feature request? |
@MorphBonehunter Doesn't look like we ever had any code to parse rcodes or zonestats in json, however maybe the xml variant handles it dynamically. It's one of those bug/feature middle ground items, but the distinction isn't super important here. If you can verify this fix we can include it in the next patch release: |
@danielnelson thanks for the explanation, indeed i only look at the json code.
But i like to mention that all other types are singular and your code addition adds the two types as plural. Also the XML Output is singular so i think it would be better to use |
Good call, I'll make that change. |
Relevant telegraf.conf:
System info:
Using Telegraf 1.11.1 on Arch Linux with BIND 9.14.3
Steps to reproduce:
Today i played with the bind plugin and noticed that there are two missing types in the telegraf output.
Based on the example output there are 6 types on the bind_counter measurement, in my case
type=rcode
andtype=zonestat
are missing.I've try to look at the source code and i can not find the place where this is collected.
In json_stats.go there are only the 4 types mentioned, which i can also see.
Expected behavior:
The
type=rcode
andtype=zonestat
should collected.Actual behavior:
Only
type=opcode
,type=qtype
,type=nsstat
andtype=sockstat
are collected.Additional info:
telegraf output (
telegraf --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d/ --input-filter bind -test
):Bind JSON Output (
curl http://localhost:8053/json/v1/server
, the/server
is only used in the curl to limit the output, full output is >19k lines):The text was updated successfully, but these errors were encountered: