greptimedb-trigger

Create GreptimeDB triggers from Prometheus alert rules using TQL and SQL.

51|52|Updated Oct 24, 2022
One-click install
npx skills add https://github.com/GreptimeTeam/docs --skill greptimedb-trigger
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: greptimedb-trigger
Source: https://github.com/GreptimeTeam/docs/tree/main/skills/greptimedb-trigger
Command: npx skills add https://github.com/GreptimeTeam/docs --skill greptimedb-trigger

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GreptimeDB users often need to convert monitoring alerts into automated actions. This Skill provides a structured guide to create GreptimeDB triggers that map Prometheus alert rules to Greptime's trigger system, enabling external webhooks and automated responses without manual SQL scripting.

Core Features & Use Cases

  • Trigger creation guide: Learn how to define triggers using Greptime's Trigger syntax (TQL/SQL) to process time-series alerts.
  • Webhook integration: Configure webhook destinations to notify Alertmanagers-style endpoints when thresholds are met.
  • Prometheus migration helper: Use the trigger workflow to migrate alerting rules from Prometheus to GreptimeDB with minimal changes.
  • Use Case: Imagine you need to alert on CPU saturation and automatically call a incident management webhook when a threshold is exceeded.

Quick Start

Define a trigger using the provided examples and the GreptimeDB trigger syntax. Then deploy and test against a sample metric and a webhook endpoint.

Frequently Asked Questions about greptimedb-trigger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create GreptimeDB triggers to send webhook alerts?

You create GreptimeDB triggers by defining a CREATE TRIGGER statement using Greptime TQL and SQL syntax. This maps time-series thresholds to external webhook destinations for automated incident notifications.

Can I migrate Prometheus alert rules to GreptimeDB triggers?

Yes, you can migrate Prometheus alert rules to GreptimeDB triggers. This Skill maps Prometheus alerting rules to the Greptime trigger system using official Trigger syntax, enabling migration with minimal manual SQL scripting changes.

Does GreptimeDB trigger creation require external installations like Alertmanager?

GreptimeDB trigger creation requires no external installations beyond standard GreptimeDB tooling. It relies on official Trigger syntax references to generate SQL and supports configuring Alertmanager-like webhook destinations natively.

How do webhooks work with GreptimeDB SQL triggers?

Webhooks in GreptimeDB SQL triggers notify Alertmanager-style endpoints when defined thresholds are met. You configure the webhook destination within the trigger statement to automate external responses for time-series alerts.

What is the best way to automate incident management from GreptimeDB metrics?

The best way to automate incident management from GreptimeDB metrics is creating triggers using TQL and SQL. This allows you to automatically call an incident management webhook when a metric threshold is exceeded.