Code

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

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

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

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

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

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