-
Notifications
You must be signed in to change notification settings - Fork 43
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
Widgets on the dashboard, where "Pending jobs" is the most crucial #54
Comments
Updated the text above a bit after dalen/node-puppetdbquery#1 was updated. |
Update: So I've modified the original text with: |
I have tried messing around with this some, and am finding that PE apparently doesn't understand latest_report?. When I try to query on it, Chrome reports: ...report.latest_report?=true and noop_pend
(https://pe.vmlapps.com/app.js:107:13987) ` |
looks like it was fixed in node-puppetdbquery does this project depend on node-puppetdbquery? |
Yes, I bug-reported it in node-puppetdbquery. |
In config.js(.example), please add something like this (I'm no programmer but I think you get the idea):
Add a dashboard for "Nodes with pending jobs".
I have cron run 'puppet agent -t --noop' every now and then on all my nodes.
Normally these noops show up as grey icons in the Nodes tab in Puppet Explorer, as there's nothing to do. The nodes are up to date. Everything is good.
However, if the noop-run show pending changes, this is indicated with a blue icon in the Node tab.
It is crucial to me to have this as a dashboard widget, as it will show how many of my nodes are NOT up to date.
Before you can add this dashboard, you need to fix the bug in dalen/node-puppetdbquery#1, since the query contain a questionmark.
#report { latest_report?=true and noop=true and status="unchanged" }
I almost consider the following a bug:
In the 'Unresponsive nodes' widget you're using a static query like this:
'#node.report_timestamp < @"now - 2 hours"'
This forces the widget to use 2 hours, even though the user can configure the UNRESPONSIVE_HOURS variable to e.g. 24h earlier in the file.
Update to something like this: '#node.report_timestamp < @"now - $UNRESPONSIVE_HOURS hours"'
This is a bit overkill, but it's just a simple if-statement:
If the puppet-db only deal with one single environment, "production", I think you should hide the 'Nodes in non-production env' widget from the dashboard. Otherwise it will always show "0" and just waste screen space for users like me. :-)
if ( total number of environments > 1 ) then
show the 'Nodes in non-production env' widget
fi
The text was updated successfully, but these errors were encountered: