Repository navigation
Kalzit 0.7.0
Kalzit 0.7.0
0.7.0 brings alerting: rules on tables and time series, on documents and on graphs, each with a
visible reduce step and a condition; notifications by mail and by signed webhook; silences; a
history of state changes and deliveries; and alert badges on the panels a rule watches.
Improved
- New main navigation entry "Alerting" between "Ask" and the data sources, with the number of
firing rules. It shows for everyone who may read alert rules while alerting is on, with the
pages Rules, Contact points, Silences and History. - Three new permissions, also selectable in custom roles: read alert rules (viewers and up),
write alert rules and silences (editors and up) and manage contact points (organization admins
and up). - Alert rules list with state, data source, shape, condition and interval, filters by state, text
and shape, and each rule's instances with their values; edit, duplicate, pause, resume, silence
and delete from the row menu. - Rule editor in five steps: query, reduce, condition, evaluation, and labels and notification.
The reduce step fits the result shape: one value per series for tables and time series (last,
min, max, mean, sum or count), the number of documents or a field's value for documents, and
the number of nodes, edges or paths for graphs. Conditions compare against a number or two
bounds. "Evaluate now" runs the rule as it stands with your own rights, before anything is
saved, and shows the state each instance would have and a preview of the message. If someone
saved a newer version in the meantime, the editor shows it and lets you load it or save yours
anyway. - "Create alert rule" in a panel's menu starts a rule from that panel. The rule keeps a copy of
the query and offers "Take over the query" when the panel changes. - Rules are evaluated on their interval (at least 30 seconds by default) as the organization's
service identity "Alerting", read-only and only on data sources opted in to alerting.
Evaluations are spread within their interval and limited per server, organization and data
source; an evaluation that cannot start in time is skipped and counted on the rule instead of
piling up. - Data sources have an Alerting section to opt in and to limit how many evaluations query the
source at once. - Contact points: organization admins add mail and webhook contact points, see a webhook's
signing secret once, renew it and send a test; everyone else sees them read-only. - Notifications go out by mail in the contact point's language (German or English) and by webhook
as signed JSON (headersKalzit-Signature,Kalzit-DeliveryandKalzit-Event), with up to
three attempts. They carry reduced values only, never rows, documents or nodes, and are never
sent twice, also not after a restart. A reminder repeats while a rule keeps firing (every 4
hours by default, or off). - Silences with conditions on labels, a duration and a required comment show which instances
they affect while you type, can be ended early and can be started straight from an instance. A
resolve that a silence held back is sent once the silence ends. - History of state changes and deliveries with a timeline per instance and filters by range,
rule, state, kind and label. - Panels show an alert badge with their rules and their state; time series draw a rule's
threshold dashed and the time it fired as a quiet area, both can be hidden in the panel menu. - Administration > Settings has an Alerting section: alerting on or off, the shortest interval,
evaluation limits and how long the alerting history is kept. Organizations can turn alerting
off for themselves and only make the limits stricter. /metricscounts alert evaluations, skipped evaluations and delivery attempts.
Checklist for Windows (manual)
- Upgrade an installation of 0.6.0 with the MSI: the service starts, dashboards, data sources and
users are all still there, Administration > Settings shows the Alerting section, and the role
editor lists the three alerting permissions. - Opt a data source in to alerting, add a webhook contact point (the secret shows once), create
a rule from a panel, run "Evaluate now" and save it; the rule appears under Alerting and the
panel shows its badge. - With the webhook pointing at a local receiver and a rule on an opted-in source, the receiver
gets a signed message when the rule fires and one when it resolves, and the test send answers
with the receiver's status. - With an outgoing proxy set under Administration > Settings, a webhook to a receiver outside
your network goes through the proxy and arrives signed. - With a real SMTP server set under Administration > Email, a mail contact point in German and
one in English each receive a mail in their language. - While a rule fires, restart the Kalzit service: the receiver gets no second firing message.
- Silence a firing rule, let the silence end while the rule still fires: exactly one message
arrives when the silence ends. - As an editor, Alerting > Contact points is read-only; add and end a silence.
The Windows program and installer of this release are not code-signed, so Windows SmartScreen may warn before it runs them. Compare their SHA-256 with
kalzit-0.7.0-manifest.json, which is signed with Kalzit's release key.