Version 0.3.4 Dashboards over ClickHouse, PostgreSQL and MongoDB

Hune

Dashboards as JSON, one static binary and one HCL file.

The server builds every query from the saved document, so a viewer never sends SQL. It is for teams that keep their data in SQL and want a small, strict dashboard server.

See how it works

A dashboard in the light theme: stat panels, a time series, a table and a bar chart
A demo dashboard over synthetic data in ClickHouse.

How it works

Hune is one static binary. The page is inside. The query engine checks each text and asks the data source.

Architecture of Hune: the browser, the edge, the single binary with the HTTP server, the access guard, the query engine and the store, the data sources, and the PDP
The single binary. The HTTP server, the access guard, the query engine, the store and the three source clients are in one program.
The query flow: the dashboard document, the expander, the query engine with its limits, and the data source
One query. The server expands the variables and the macros of the saved SQL, checks the text, applies the limits and asks the source.
The resource tree of the access model: service, folder, dashboard and source, with the three actions and the two ceilings
The access model. A grant on a folder covers its dashboards. Read the rules.
The two stores: a volume with one JSON file for each dashboard, and PostgreSQL with one row for each dashboard
Two stores. Both keep the same canonical bytes. A command copies a store to the other kind.

See it

Each picture comes from a live copy of the product, with synthetic demo data. Nothing is mocked.

A dashboard in the light theme: stat panels, a time series, a table and a bar chart
Dashboards. Stat panels, time series, tables and charts over a ClickHouse source.
The same dashboard in the dark theme
Two themes. The page has a light theme and a dark theme.
A dashboard of charts in the light theme
Charts. Time series with thresholds, bar charts and more.
A dashboard of charts in the dark theme
Dark charts. The charts follow the theme of the page.
A table panel with coloured cells
Tables. Cell colours by thresholds, links and sorting.
The list of dashboards with folders
Folders. A dashboard list with one level of folders.
Variable controls and the open time picker
Variables and time. Variables, the time picker and the refresh.
The panel editor with the query editor and the preview
Editor. The query editor, the options and a live preview.
The history of versions of a dashboard
History. Each save is a version. You can compare and restore.
The inspect view of a panel query
Inspect. The SQL that the server sent, the time and the rows.
A panel that shows three pulsing dots while it loads
Loader. Three small dots show that a panel loads.
A dashboard with gauges, a heatmap, a histogram, a state timeline and a logs panel
More panel types. Gauges, heatmaps, histograms, state timelines and logs.
The comparison of two versions of a dashboard
Compare. The editor shows the change between two versions of a document.
A dashboard in the read-only view, without the Edit switch
Read only. A person without the write grant sees no Edit switch.
The refusal that the page shows when the PDP says no
Refusal. The PDP refuses a dashboard. Hune shows no data of it.
A dashboard at the width of a phone
Narrow screens. The grid becomes one column.

What Hune does

AreaWhat Hune does
Data sourcesClickHouse, PostgreSQL and MongoDB. Each kind has a closed check of the query text, limits, a cancel and a probe.
PanelsTable, time series, stat, bar chart, pie chart, XY chart, bar gauge, gauge, text, state timeline, status history, heatmap, histogram, logs and map.
VariablesQuery, custom, text box, interval, constant and ad hoc filters. A variable can repeat a panel or a row.
EditorForms for each panel type, a query editor with a syntax tree, a history of versions, a conflict screen and restore.
StoresA folder of JSON files (a volume) or a PostgreSQL database. Commands move documents from one store to the other.
GrafanaThe command import-grafana reads the dashboards of a Grafana export, with a report, an acceptance file and an nginx map.
AccessThe mode authzen checks an identity token and asks a PDP. The mode open needs a proxy that signs users in.
ConfigurationOne HCL file with a closed schema. A mistake stops the start. The command print-config shows each value and its source.
OperationLogs, metrics, audit lines, an OTLP exporter of traces and a second port for the operation routes.
PagePlain JavaScript, HTML and CSS with no framework and no build step. A light theme and a dark theme. No request goes to another origin.

Run it in five minutes

This test starts a local ClickHouse in Docker, on 127.0.0.1. The guide has each step, with the demo data.

sh
docker run -d --rm --name hune-demo-ch -p 127.0.0.1:8123:8123 clickhouse/clickhouse-server:26.8.34.13
curl -fsSLO https://github.com/ProcurAuth/hune/releases/download/v0.3.4/hune_0.3.4_linux_amd64.tar.gz
tar -xzf hune_0.3.4_linux_amd64.tar.gz
cd hune_0.3.4_linux_amd64
./hune serve -c hune.hcl

The ProcurAuth family

Hune is a program of the ProcurAuth organisation. The organisation holds the open specification and the programs that follow it. The implementations page lists them, with the results of the conformance runs.