Generador de Reglas de Alerta y Registro de Prometheus (PromQL) - Guía para Desarrolladores
Construya y valide visualmente reglas de alerta PromQL, reglas de registro, umbrales, etiquetas y anotaciones de runbook.
# Prometheus Alerting & Recording Rules Specification
# Generated by ToolsAA (100% Client-Side Engine)
groups:
- name: infrastructure_node_alerts
interval: 30s
rules:
- alert: HostHighCpuLoad
expr: 100 - (avg by (instance, job) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100) > 85
for: 5m
keep_firing_for: 2m
labels:
severity: warning
tier: "infra"
team: "sre-platform"
annotations:
summary: "Host CPU utilization exceeds 85% on {{ $labels.instance }}"
description: "Node {{ $labels.instance }} (job: {{ $labels.job }}) has had CPU utilization above 85% for 5m. Current load is {{ $value | printf \"%.2f\" }}%."
runbook_url: "https://runbooks.prometheus-operator.dev/runbooks/general/cpu-high-load/"
dashboard_url: "https://grafana.internal.net/d/node-exporter-full?var-instance={{ $labels.instance }}"
action_required: "Investigate noisy-neighbor processes via htop or check autoscaling capacity."
Group: infrastructure_node_alerts | For: 5m
Range: Windowed | Annotations: 3 vars
kube-prometheus-stack • Alertmanager • promtool
AST de PromQL y síntesis de expresiones
Construya visualmente expresiones PromQL robustas con selectores de métricas, ventanas de rango, funciones de agregación y umbrales de comparación.
Privacidad 100% en el navegador
Cero comunicaciones con servidores o telemetría. Sus nombres de métricas internas, topologías de clúster y URL de runbook permanecen privados en su navegador.
Nativo para Promtool y Operator
Genera archivos de reglas estándar de Prometheus 2.x, CRD PrometheusRule de kube-prometheus-stack y especificaciones de pruebas unitarias para promtool.