-
Notifications
You must be signed in to change notification settings - Fork 474
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
Check for case where field in fetch but not config #1553
base: master
Are you sure you want to change the base?
Conversation
I would sort of wanted to make mistakes more obvious and push them towards the UI and not hide them in logs. But at least, according to the comments, this will be in the logs. |
@yunal I'm actually undecided. Having then not show up on the UI has actually its benefits, since someone will look deeper if he doesn't see his graph. And then having it in the logs makes it obvious. Whereas the old 2.0 behavior was kindof not forcing folks to fix wrong plugins. So. It will break some working-before plugins, which I don't like. Yet those where wrong in the first place. In a nutshell, it feels like a |
Better handling when a plugin has a field in fetch that wasn't in config. This specifically prevents inserting id=null rows into the state table. Note: Munin 2.0 would display these fields with a "No .label provided" label and default drawing rules. These are now dropped.
4259efc
to
33c1fda
Compare
Oh, but upon looking at the code I see that :
Once those 2 points are ok, I'm happy to merge it. |
For logging, there is a warning that's triggered in _db_state_update. In the syslog for my forced error case, I'm getting: munin-update: ds_id(bind9_server_stats, requests_with_edns_0_received, 1688380931, 63091) is NULL, SELECT ds.id FROM ds... For the data, it's an issue since rrd:file is a ds attribute, but there's no ds record. The pre-patch behavior was to lose data, specifically from _create_rrd_file: I'll look at capturing the data and adding a UI record. |
Modifying the UI isn't really needed. Just have a very explicit WARNING log fired is more than enough. And, thanks for capturing the data inside an RRD. |
Better handling when a plugin has a field in fetch that wasn't in config. This specifically prevents inserting id=null rows into the state table.
Note: Munin 2.0 would display these fields with a "No .label provided" label and default drawing rules. These are now dropped.