Commit Graph

488 Commits

Author SHA1 Message Date
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
Frederik Happel
d067fe3ed3 use configuration variable UNRESPONSIVE_HOURS to determine if a node's
status is unreported
2013-11-05 18:31:54 +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
de6a77951c app: Abort if we can't fetch metrics. 2013-11-05 12:20:48 +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
Daniele Sluijters
a1f00a7b66 Merge pull request #28 from digitalmediacenter/improve-nodestatus
Enhance node status feature in overview and nodes
2013-11-05 03:01:02 -08:00
Julius Härtl
b3d08233f3 change sorting of the overview node status in javascript 2013-11-05 11:54:28 +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
Daniele Sluijters
a84da91f06 Merge pull request #26 from lsjostro/list-nodes-with-failure
make failed/success event counts clickable
2013-11-04 03:25:06 -08:00
Lars Sjöström
09b249b0ca make failed/success event counts clickable 2013-11-04 11:40:32 +01:00
Daniele Sluijters
269aeeec57 Merge pull request #23 from nibalizer/pep8
Assorted PEP8 fixes.
2013-11-04 02:33:12 -08:00
Daniele Sluijters
3cbb21ac60 templates: use jQuery protocol relative URL. 2013-10-30 09:57:25 +01:00
Spencer Krum
49afb9ed34 Pep8 check most files
I left some errors on puppetboard/forms.py because I'm not
sure how to fix them.
2013-10-29 11:51:51 -07:00
Spencer Krum
7265dc2fd0 puppetboard/app.py: pep8 2013-10-29 11:41:53 -07:00
Daniele Sluijters
f2e7ecc67e Merge pull request #25 from lsjostro/fix-nodes-without-timestamp
Add nodes with missing timestamp to unreported nodes
2013-10-29 06:33:06 -07:00
Lars Sjöström
61548c819c Add nodes with missing timestamp to unreported nodes
Skip nodes with NoneType timestamps

add nodes with missing timestamp to unreported nodes
2013-10-29 14:14:48 +01:00
Daniele Sluijters
ee2775512d requirements: Change the URL to use git+git.
Some versions of Pip, depending on the platform and Python version have
issues with git+https URL's.
2013-10-29 09:03:55 +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
029b50405b screenshots: New overview and nodes pages. 2013-10-28 17:15:43 +01:00
Daniele Sluijters
795d243e9d We now require PuppetDB 1.5 / API v3.
PUPPETDB_API is no longer configurable since we're now using features
that are v3 only. Limiting ourselves to v2 compatibility is far too
troublesome and people tend to update to newer versions of PuppetDB
fairly quickly.
2013-10-28 17:08:40 +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
Daniele Sluijters
a4dc1f694e Merge pull request #22 from digitalmediacenter/feature-status
Add basic support for node status by using the most recent report

Closes #5 #15
2013-10-28 07:43:26 -07:00
Julius Härtl
bbb65939c9 remove duplicate mean_command_time 2013-10-28 15:38:45 +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
c7bae2efa3 fix for required branch of pypuppetdb with new api support 2013-10-25 16:07:00 +02: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
efae19dc6d css: Color table row/cells with class 'error'. 2013-10-18 15:47:59 +02:00
Daniele Sluijters
bb124e1ba5 Merge pull request #21 from KlavsKlavsen/master
added wsgi file for passenger
2013-10-15 01:02:34 -07:00
Klavs Klavsen
89117ce844 change default loglevel to be INFO instead of DEBUG. 2013-10-15 09:11:26 +02:00
Klavs Klavsen
b5fde343ed added wsgi file for passenger - with error handling and logging to tmp file - until I figure out how to make it log to apache error log instead 2013-10-14 15:48:31 +02:00
Daniele Sluijters
c6c4bc1679 README: Add newline after code-block. v0.0.2 2013-10-14 13:05:22 +02:00
Daniele Sluijters
9be5aaebd9 0.0.2: Release.
This is the second 'release' for Puppetboard introducing some new
features and compatibility with PuppetDB 1.5 / v3 API.
2013-10-14 12:53:25 +02:00
Daniele Sluijters
a75b08f882 nodes: Check PUPPETDB_API, not _EXPERIMENTAL. 2013-10-14 12:53:25 +02:00
Daniele Sluijters
f85f0fa864 requirements: Upgrade to pypuppetdb 0.0.4 2013-10-14 12:53:25 +02:00
Daniele Sluijters
095967e445 Merge pull request #20 from nibalizer/graph_fix
_macros.html: Sorting and bucketing facts graphs.
2013-10-13 12:32:48 -07: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
Spencer Krum
23af033cbb facts: Add graph for facts endpoint. 2013-10-13 14:59:22 +02:00
Spencer Krum
e71f30ab50 Add flag to enable or disable the query page
Puppetboard is an excelent radiator of information, but sometimes
we want to expose information to users we don't trust giving full
access to the PuppetDB query language.

I would reccomend that Puppetboard be run twice. One, with query
enabled, run on a port behind apache login. Another, with query
disabled, run unproxied for the unwashed masses.

Closes #10.
2013-10-13 14:32:24 +02:00
Daniele Sluijters
cc87e54cea Support PuppetDB API v3.
Recently changes were made to pypuppetdb to support, at a basic level,
the v3 API introduced with PuppetDB 1.5.

This commit changes some internals of Puppetboard to handle the new
situation:
 * The experimental endpoints are gone, so is the ExperimentalDisabled
   Error;
 * v2 API can no longer access Reports/Events so we now check that we're
   talking at least v3 API;
 * Introduce a configuration setting PUPPETDB_API which takes an integer
   repersenting the API version we want to talk.
2013-10-11 11:20:34 +02:00
Daniele Sluijters
3b4db8f37e Merge pull request #19 from daniellawrence/fact_table_template_title_and_links
Add links for facts and nodes in fact table macro
2013-10-11 00:55:31 -07:00