Crossweft / Updates / v0.6.0
UPDATE · v0.6.0 ·

Alarm rules for Loki and Grafana straight from the map

crossweft signals --format loki|grafana turns the alarm catalog into Loki ruler groups or Grafana alerting provisioning.

One new export: the alarms the map already asks for become rules that a log store evaluates.

Why. Since 0.4.0 every link, service and flow on the map needs an alarm, and crossweft signals prints the catalog. To use it you still had to write the queries by hand, and they drifted from the map.

Export. --format loki writes rule groups for the Loki ruler, --format grafana writes Grafana alerting file provisioning with one Loki query per rule:

crossweft signals --format loki --selector-default '{service_name="{service}"}' --out rules/shop.yaml
crossweft signals --format grafana --datasource-uid <loki-uid> --out provisioning/alerting/shop.yaml
  • a heartbeat becomes absent_over_time with warn and crit;
  • a red link becomes an error-rate rule, and p95 latency with --latency-field;
  • the watchdog fires always, so silence means the alerting itself broke.

Kinds a log query cannot answer (health, probe, queue, dlq) and services without a selector are printed as [SKIP] and stay with your alert router. A breach fires one alert, not two: warn stops where crit starts. Every rule carries crossweft_rule, crossweft_kind and crossweft_via, so a router can deduplicate. Details are in the "Rules for Loki and Grafana" section of docs/signals.md.

Source: v0.6.0 · CHANGELOG.md

← v0.5.0