Code

sysdb/webui.git
9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.