Commit Graph

61 Commits

Author SHA1 Message Date
Stoyan Stoyanov
d75d5007a3 Added inventory page along with a navbar link.
Added inventory page showing a table similar to the "Nodes" one,
but containing any customizable set of facts.

A setting INVENTORY_FACTS has been added. It controls the list
of facts to be displayed along with a description for the header
of the table.
2015-05-07 14:38:25 -07:00
Julien Kassar
a01a5cf9e0 Add version and current year to the layout
Fixes #78
2015-02-27 13:39:36 -05:00
Julien Kassar
cf30d32869 Add scroll to top button 2015-02-26 10:42:14 -05:00
Spencer Krum
7a0c4bd837 Selecting which graphs to show with config option
Known-good facts to graph are set as defaults. This list is merged
with whatever facts are listed in settings.py
2015-01-24 21:15:52 -08:00
William Van Hevelingen
3940c84de3 Improve speed with facts that have many unique values
When there are more than 15 unique fact values it groups the least
commonly used into an other label.

Co-authored-by: Sage Imel <sage@cat.pdx.edu>
Co-authored-by: Ryan Niebur <ryan@cat.pdx.edu>
2015-01-24 21:15:23 -08:00
William Van Hevelingen
8e063e7f15 Replace chart.js with c3.js
chart.js is poorly maintained and has been disabled. c3.js
has active development and removes the need for two charts
on the facts page.

Co-authored-by: Sage Imel <sage@cat.pdx.edu>
Co-authored-by: Ryan Niebur <ryan@cat.pdx.edu>
2015-01-24 21:15:23 -08:00
Spencer Krum
3d3b7012e3 Updating redmine tickets to jira tickets 2014-11-17 17:49:29 +00:00
Gert van Dijk
d1342510fd Upgrade external resources libraries to current versions.
To align with added offline resources:

* Semantic UI from 0.12.0 to 0.16.1
  (0.18.0 is not yet available on cdnjs.cloudflare.com)
* jQuery TableSorter from 2.13.3 to 2.17.2
* moment.js from 2.5.1 to 2.7.0
2014-06-26 20:47:08 +02:00
Gert van Dijk
5190020a0b Offline: Add OFFLINE_MODE config and adjust HTML resources. 2014-06-26 20:43:01 +02:00
stack72
f5d0f86e31 Merge remote-tracking branch 'upstream/master' 2014-06-10 21:59:02 +01:00
Daniele Sluijters
dbb8d9f12c Merge pull request #69 from tilya/node_state_noop
adds pending nodes counter to the main dashboard (#58)
2014-05-29 11:51:31 +02:00
Daniele Sluijters
381cad51e5 Allow disabling timestamp localisation.
Fixes #63.
2014-05-29 11:36:11 +02:00
stack72
85dd8da276 Removing the ten_reports method and passed the reports count through to the reports_node page 2014-05-16 17:00:35 -05:00
stack72
81c71607ae Added a hacky solution to allow users to be able to set a number of reports that they wish to display on the reports panel on the node page 2014-05-16 16:37:16 -05:00
Anna Janackova
4c50b82768 adds pending nodes counter to the main dashboard
* nodes with state noop are counted towards the "pending" column in the main
  dashboard
* changes top layout to four-column
2014-04-25 16:43:37 +02:00
Daniele Sluijters
022abd9a4a style: Fix darkblue for the facts list. 2014-03-13 14:05:11 +01:00
Daniele Sluijters
2329f7735f Goodbye Puppet-purple, hello Puppetboard darkblue. 2014-03-13 13:57:04 +01:00
Daniele Sluijters
fbf36dca8e layout: Upgrade to moment.js 2.5.1. 2014-03-13 12:02:34 +01:00
Daniele Sluijters
bcb45c24a4 Switch the interface to Semantic-UI. 2014-03-13 12:02:34 +01:00
Sigmund Augdal
d4ff065963 Disable pie chart animations 2014-02-11 14:47:30 +01:00
Daniele Sluijters
f35b81ae31 templates: Fix overview layout.
`min-width` is officially a bit undefined and a hack but it actually
works so for now, we'll use it.

Closes #47
2014-01-22 19:26:42 +01:00
Daniele Sluijters
386fea9e1e templates: Sort fact tables.
We actually had a function that would sort the facts tables by default
based on the first column but weren't using this. Testing with the
upcoming PuppetDB 1.6 made this bug surface because PuppetDB stopped
sorting facts by itself.
2014-01-21 15:10:28 +01:00
Sijis Aviles
e57437e705 adding link to node details page when viewing a specific report 2013-12-10 14:17:26 -06:00
Daniele Sluijters
bf86b1780d Merge pull request #32 from lsjostro/remove-empty-message-check
Remove check for empty message in events.
2013-11-25 00:42:25 -08:00
Julius Härtl
73e26e8c1c error fix, format string and css button width fix 2013-11-20 13:34:13 +01:00
Julius Härtl
08bad89041 fix for latest report in overview
* report/latest/<node_name> uses limit parameter in _query
  to get just one report
* disable "Latest Report" button if there is no report
* HTTP Status 500 if there is no report on report/latest/<node_name>
2013-11-20 11:30:08 +01:00
Lars Sjöström
e55e43ed6a remove check for empty message 2013-11-06 14:20:56 +01:00
Daniele Sluijters
398156b0ae fact: Add the counter back to facts.
Since we're now already consuming the generator and creating a list we
can call lenght on it just fine.

Closes #18
2013-11-06 08:40:46 +01:00
Daniele Sluijters
0992763d9d Merge pull request #27 from lsjostro/display-event-message
Toggle display of event message in reports
2013-11-05 10:13:03 -08:00
Lars Sjöström
fb763e637f Feature: Toggle event message in event reports
Toggle event message in reports

cursor pointer and indent of message

rebase from master
2013-11-05 18:51:45 +01:00
Daniele Sluijters
efe488aafc Add a new jsonprint filter, used in metrics, query 2013-11-05 16:41:47 +01:00
Daniele Sluijters
79ac5b3cb0 node: Give the node overview some breathing room.
The interface was too packed causing the facts and reports tables to be
jammed into place.

Currently working on a complete new node overview page but this should
make things a bit more workable in the meantime.
2013-11-05 16:10:46 +01:00
Daniele Sluijters
754784f4af Make fact value clickable.
In the Facts view you can now click on the value of a fact and get a
listing of all the nodes with that value for that fact.

Closes #13
2013-11-05 15:44:34 +01:00
Daniele Sluijters
0563224c87 metric: 100 is a bit much, 75 looks better. 2013-11-05 14:20:03 +01:00
Daniele Sluijters
3efdb58ce3 metric: Truncate the name. 2013-11-05 14:12:47 +01:00
Daniele Sluijters
e753fc444a overview: Add a count, info if nothing is changing
The Nodes status detail now shows for how many nodes we have events.
Additionally when there are no events we simply show an alert that
nothing is going on.
2013-11-05 12:12:49 +01:00
Julius Härtl
ffdbfcda24 nodes view filter now works with new status attribute 2013-11-05 10:49:59 +01:00
Julius Härtl
f187638b6e Enhance node status feature in overview and nodes
This commit uses the new parameter with_status from nedap/pypuppetdb#18

Node status is now shown as text with the additional information of
failed/succeded events, unreported time

The statistics on Overview now show the *number of nodes*
that have status failed/changed/unreported
2013-11-05 10:07:53 +01:00
Lars Sjöström
09b249b0ca make failed/success event counts clickable 2013-11-04 11:40:32 +01:00
Daniele Sluijters
3cbb21ac60 templates: use jQuery protocol relative URL. 2013-10-30 09:57:25 +01:00
Daniele Sluijters
75da9b9209 Get rid of old settings.
I broke things with 795d243e9d because I
forgot to remove it everywhere from functions and templates. Also
removed the old PUPPETDB_EXPERIMENTAL switching.
2013-10-28 21:46:34 +01:00
Daniele Sluijters
c0cef0a3c0 overview: Cosmetic changes.
* Don't pass unresponsive to the view, access config[] object instead
* Remove the statistics header, it only takes up space
* Lowercase a few things
* Change the descriptions for 'radiator' to make the math work: Because
  of how PuppetDB's aggregate-events-count works nodes with both
  successful and failed events count for both causing success + failure
  + unreported to not equal population, which is weird. Now we're simply
  stating that they have failed events instead of saying that the node
  is succesful/failed.
2013-10-28 16:50:19 +01:00
Daniele Sluijters
58625b5ee0 overview: Remove command statistics. 2013-10-28 16:49:39 +01:00
Julius Härtl
5ca758dd39 show list of nodes without report for x hours in overview
- the amount of hours is defined as `UNRESPONSIVE_HOURS` in default_settings.py
- small status layout improvement in nodes list
- latest report button in nodes list
- nedap/pypuppetdb repo as requirement ( new api was merged nedap/pypuppetdb#17 )
2013-10-28 11:36:37 +01:00
Julius Härtl
7c027dd97d Add basic support for node status by using the most recent report
The following frontend features are implemented
- Number of failures, successes, noops/skips in overview
- Show latest reports with 1 or more events in overview
- Direct links to latest Report
- Number and types of events in nodes list
2013-10-25 15:43:14 +02:00
Daniele Sluijters
a75b08f882 nodes: Check PUPPETDB_API, not _EXPERIMENTAL. 2013-10-14 12:53:25 +02:00
Spencer Krum
8a56e83b69 puppetboard/templates/_macros.html
This adds sorting and bucketing to the two graphs in the facts
view.
2013-10-13 12:25:56 -07:00
Daniele Sluijters
934f90c12a _macros.html: Graphs a bit smaller, FlatUI colors.
Currently the graphs are shown at the top of the page and because of
that really take up a lot of screen real estate. This commit makes the
graphs a bit smaller but we really need to rethink the layout here.

Additionally we switch the colors to the FlatUI swatches to match the
rest of the theme better.
2013-10-13 15:31:33 +02:00
Spencer Krum
0422b2ccd0 _macros.html: mod ensure different adjecent colors 2013-10-13 15:01:04 +02:00
Spencer Krum
e1603608bc _macros.html: Add a second Pie chart to facts/<fact>
The second chart is in order of the value of the fact. So in the
uptime fact we see 1 day before 2 days before 50 days.
2013-10-13 15:00:03 +02:00