Code

sysdb/webui.git
9 years agoAdd rudimentary support for dynamic graphs based on a metrics query.
Sebastian Harl [Thu, 14 May 2015 10:42:51 +0000 (12:42 +0200)]
Add rudimentary support for dynamic graphs based on a metrics query.

A new page now allows to query metrics using the simple query language of the
webUI. All returned metrics will be thrown into a single graph.

9 years agoserver/query: Factor out the query parser into a separate function.
Sebastian Harl [Wed, 13 May 2015 20:53:48 +0000 (22:53 +0200)]
server/query: Factor out the query parser into a separate function.

9 years agograph: Introduce a new type representing a metric.
Sebastian Harl [Wed, 13 May 2015 20:34:43 +0000 (22:34 +0200)]
graph: Introduce a new type representing a metric.

The new type allows to add further information to a metric.

9 years agoAdd a separate package for handling graphs and plots.
Sebastian Harl [Tue, 12 May 2015 21:13:01 +0000 (23:13 +0200)]
Add a separate package for handling graphs and plots.

For now, the package is a simple wrapper around github.com/gonum/plot. It
supports graphing multiple metrics in the same graph (even though that's not
used by the server yet).

9 years agoConvert the code to the new client.Client interface.
Sebastian Harl [Tue, 12 May 2015 20:43:16 +0000 (22:43 +0200)]
Convert the code to the new client.Client interface.

Drop the custom query abstraction in favor of client.Query().

9 years agoMigrate to github.com/gonum/plot.
Sebastian Harl [Sat, 25 Apr 2015 12:34:31 +0000 (14:34 +0200)]
Migrate to github.com/gonum/plot.

This is the new, official fork of code.google.com/p/plotinum.

9 years agoAdd support for host.<attribute> queries.
Sebastian Harl [Sat, 25 Apr 2015 11:59:40 +0000 (13:59 +0200)]
Add support for host.<attribute> queries.

9 years agoMerged branch 'master' of git://git.tokkee.org/sysdb/webui.
Sebastian Harl [Fri, 17 Apr 2015 20:12:05 +0000 (22:12 +0200)]
Merged branch 'master' of git://git.tokkee.org/sysdb/webui.

9 years agoLog the remote server version on startup.
Sebastian Harl [Sun, 22 Feb 2015 18:27:31 +0000 (19:27 +0100)]
Log the remote server version on startup.

9 years agoInclude the remote server version on the index page.
Sebastian Harl [Sun, 22 Feb 2015 18:25:26 +0000 (19:25 +0100)]
Include the remote server version on the index page.

9 years agoDon't try to display metric information after the query failed.
Sebastian Harl [Sat, 21 Feb 2015 23:20:32 +0000 (00:20 +0100)]
Don't try to display metric information after the query failed.

9 years agoAdded simple Travis-CI configuration file.
Sebastian Harl [Tue, 23 Dec 2014 12:04:25 +0000 (13:04 +0100)]
Added simple Travis-CI configuration file.

9 years agoUse the current username by default.
Sebastian Harl [Tue, 23 Dec 2014 12:03:27 +0000 (13:03 +0100)]
Use the current username by default.

9 years agoRemove query data from the URI path.
Sebastian Harl [Thu, 4 Dec 2014 21:35:54 +0000 (22:35 +0100)]
Remove query data from the URI path.

9 years agoAdded support for looking up other object types besides hosts.
Sebastian Harl [Wed, 26 Nov 2014 21:18:20 +0000 (22:18 +0100)]
Added support for looking up other object types besides hosts.

A query may now be prefixed with <type>: to chose a different type. The
default is still hosts.

9 years agoDon't return an HTTP error status if a handler fails.
Sebastian Harl [Wed, 26 Nov 2014 21:10:00 +0000 (22:10 +0100)]
Don't return an HTTP error status if a handler fails.

This might confuse browsers and, more importantly, now we re-populate the
query input field with the user's query in case it failed.

9 years agoUse the 'page' type in the error handler as well.
Sebastian Harl [Wed, 26 Nov 2014 21:03:31 +0000 (22:03 +0100)]
Use the 'page' type in the error handler as well.

9 years agoAdded a very simple query language for name or attribute based lookups.
Sebastian Harl [Wed, 26 Nov 2014 20:59:23 +0000 (21:59 +0100)]
Added a very simple query language for name or attribute based lookups.

This is a language suitable for simple queries using the lookup form. It
supports quoted and unquoted strings representing either regular expression
for object names or a colon-separated key/value pair for matching attribute
values.

10 years agoMake a metric's graph's time-range configurable.
Sebastian Harl [Mon, 24 Nov 2014 08:57:23 +0000 (09:57 +0100)]
Make a metric's graph's time-range configurable.

10 years agoMake a graph's start and end times configurable.
Sebastian Harl [Sun, 23 Nov 2014 16:29:35 +0000 (17:29 +0100)]
Make a graph's start and end times configurable.

10 years agoImproved error reporting in graph(): correctly report bad requests.
Sebastian Harl [Sun, 23 Nov 2014 15:02:07 +0000 (16:02 +0100)]
Improved error reporting in graph(): correctly report bad requests.

10 years agoLet the query helper ensure that all string arguments are escaped.
Sebastian Harl [Sun, 23 Nov 2014 11:33:27 +0000 (12:33 +0100)]
Let the query helper ensure that all string arguments are escaped.

Introduce a new type, identifier, to be used for strings that shall never be
escaped, similar to how html/template treats the HTML, JS, etc. types. The
query helper now expects printf style format and value arguments.

10 years agoSplit server.go into server.go and query.go.
Sebastian Harl [Sat, 22 Nov 2014 14:24:44 +0000 (15:24 +0100)]
Split server.go into server.go and query.go.

10 years agoSimplified URL parsing and un-escape URIs.
Sebastian Harl [Sat, 22 Nov 2014 12:07:00 +0000 (13:07 +0100)]
Simplified URL parsing and un-escape URIs.

This avoids subsequent string-joins in various handlers and generally unifies
URL handling.

Also, it fixes handling of URLs containing (escaped) spaces.

10 years agoGive content generators more control over the generated page.
Sebastian Harl [Sat, 22 Nov 2014 11:20:18 +0000 (12:20 +0100)]
Give content generators more control over the generated page.

10 years agoShow graphs only if SysDB indicated that time-series are available.
Sebastian Harl [Sat, 22 Nov 2014 10:29:03 +0000 (11:29 +0100)]
Show graphs only if SysDB indicated that time-series are available.

10 years agoMake sure to break overly long "words" when displaying attribute values.
Sebastian Harl [Fri, 21 Nov 2014 22:54:53 +0000 (23:54 +0100)]
Make sure to break overly long "words" when displaying attribute values.

10 years agograph: Use a date string for x-axis tick markers.
Sebastian Harl [Fri, 21 Nov 2014 20:36:21 +0000 (21:36 +0100)]
graph: Use a date string for x-axis tick markers.

This is a very basic implementation which is not well suited for all time
ranges but it's good enough to get started.

10 years agoAdded support for simple SVG graphs for metrics.
Sebastian Harl [Fri, 21 Nov 2014 20:23:57 +0000 (21:23 +0100)]
Added support for simple SVG graphs for metrics.

The graph will be displayed when querying a metric. The graph itself mostly
uses default settings of the Plotinum package for now.

10 years agoserver: Make it easier to add special handlers.
Sebastian Harl [Fri, 21 Nov 2014 20:04:29 +0000 (21:04 +0100)]
server: Make it easier to add special handlers.

Currently, this is used for serving static content.

10 years agoMake sure to not use a client connection multiple times in parallel.
Sebastian Harl [Thu, 20 Nov 2014 22:35:27 +0000 (23:35 +0100)]
Make sure to not use a client connection multiple times in parallel.

That's not supported by the client at the moment. Instead, use multiple
connections. That's a bit of a hack but the server can easily handle many idle
connections.

10 years agoInitial commit of the SysDB web interface.
Sebastian Harl [Thu, 20 Nov 2014 22:19:18 +0000 (23:19 +0100)]
Initial commit of the SysDB web interface.

This is the initial version of a web-based client programm for querying SysDB
(https://sysdb.io/). For now, it supports browsing, querying, and displaying
basic information about hosts, services, and metrics.