greptimedb-trigger
Installation
SKILL.md
GreptimeDB Trigger Guide
Enterprise only. Triggers are available only in GreptimeDB Enterprise. For open-source deployments, fall back to Prometheus Alertmanager or an external scheduler.
Create GreptimeDB trigger definition as an alternative to Prometheus alerting
rules. A trigger periodically runs a query — a SQL SELECT or a TQL EVAL
block wrapping a PromQL expression — and turns each result row into an alert
instance. Most concepts from Prometheus alerting rules map directly onto
trigger DDL, and existing PromQL rules can be hosted as-is through TQL EVAL.
The workflow
To create a GreptimeDB trigger, we should follow these phases:
Phase 1. Understanding GreptimeDB Trigger
First, we should read the trigger reference from the documentation.