Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问许可证需确认审计通过

alertmanageralertmanager 命令行

Agent Skill

alertmanager 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

220

周安装

9

GitHub Stars

公开资料未说明

下载量

71
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alertmanager(alertmanager 命令行)
来源仓库:https://github.com/davidcastagnetoa/skills
仓库路径:skills/alertmanager
安装命令:
npx skills add https://github.com/davidcastagnetoa/skills --skill alertmanager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/davidcastagnetoa/skills --skill alertmanager

简介

专注于 Prometheus Alertmanager 的配置与管理,处理关键管道告警生命周期。

  • 适用于告警路由、分组、静默及对接 PagerDuty、Slack 等通知通道。
  • 覆盖 FAR/FRR 质量降级、推理 worker 宕机、流水线延迟等场景的告警策略。
  • 安装方式:npx skills add https://github.com/davidcastagnetoa/skills --skill alertmanager
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

alertmanager

Skill para configurar Prometheus Alertmanager como sistema de notificacion de alertas criticas del pipeline de verificacion de identidad KYC. Este skill se centra exclusivamente en la gestion de alertas (enrutamiento, agrupacion, silenciamiento, notificacion) y es independiente de la configuracion de Prometheus como tal. Cubre alertas para degradacion de metricas de calidad (FAR/FRR), caida de workers de inferencia, latencia excesiva del pipeline y agotamiento de error budget.

When to use

Utilizar esta skill cuando el health_monitor_agent necesite configurar, ajustar o depurar el sistema de alertas del pipeline KYC. Aplica cuando se requiere definir nuevas reglas de alerta, configurar canales de notificacion (Slack, PagerDuty, email), ajustar umbrales de severidad, o resolver problemas de alertas ruidosas o silenciadas incorrectamente.

Instructions

  1. Desplegar Alertmanager con la configuracion base de enrutamiento para el pipeline KYC:
# alertmanager-config.yaml
global:
  resolve_timeout: 5m
  slack_api_url: "https://hooks.slack.com/services/XXXXX"

route:
  receiver: "kyc-default"
  group_by: ["alertname", "service", "severity"]
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 4h
  routes:
  - match:
      severity: critical
    receiver: "kyc-critical"
    group_wait: 10s
    repeat_interval: 1h
  - match:
      severity: warning
      team: kyc-ml
    receiver: "kyc-ml-team"
    group_wait: 1m
  - match:
      alertname: KYCErrorBudgetBurn
    receiver: "kyc-sre-pagerduty"
    group_wait: 0s
    repeat_interval: 30m

receivers:
- name: "kyc-default"
  slack_configs:
  - channel: "#kyc-alerts"
    title: '{{ .GroupLabels.alertname }}'
    text: '{{ range .Alerts }}{{ .Annotations.description }}{{ end }}'

- name: "kyc-critical"
  slack_configs:
  - channel: "#kyc-critical"
    title: 'CRITICAL: {{ .GroupLabels.alertname }}'
    text: '{{ range .Alerts }}{{ .Annotations.description }}{{ end }}'
  pagerduty_configs:
  - service_key: "<PAGERDUTY_KEY>"
    severity: critical

- name: "kyc-ml-team"
  slack_configs:
  - channel: "#kyc-ml-models"

- name: "kyc-sre-pagerduty"
  pagerduty_configs:
  - service_key: "<PAGERDUTY_KEY>"
    severity: critical
  1. Definir reglas de alerta para degradacion de metricas de calidad biometrica (FAR/FRR):
# kyc-quality-alerts.yaml
groups:
- name: kyc-quality
  rules:
  - alert: KYCHighFalseAcceptanceRate
    expr: |
      (
        sum(rate(kyc_verification_result_total{result="accepted", ground_truth="impostor"}[1h]))
        /
        sum(rate(kyc_verification_result_total{ground_truth="impostor"}[1h]))
      ) > 0.001
    for: 15m
    labels:
      severity: critical
      team: kyc-ml
    annotations:
      summary: "FAR excede umbral del 0.1%"
      description: "La tasa de falsa aceptacion es {{ $value | humanizePercentage }}, superando el objetivo de 0.1%. Posible degradacion del modelo de face matching."

  - alert: KYCHighFalseRejectionRate
    expr: |
      (
        sum(rate(kyc_verification_result_total{result="rejected", ground_truth="genuine"}[1h]))
        /
        sum(rate(kyc_verification_result_total{ground_truth="genuine"}[1h]))
      ) > 0.05
    for: 15m
    labels:
      severity: warning
      team: kyc-ml
    annotations:
      summary: "FRR excede umbral del 5%"
      description: "La tasa de falso rechazo es {{ $value | humanizePercentage }}. Usuarios legitimos estan siendo rechazados."
  1. Definir alertas para workers caidos y disponibilidad del pipeline:
# kyc-availability-alerts.yaml
groups:
- name: kyc-availability
  rules:
  - alert: KYCServiceDown
    expr: up{namespace="kyc-pipeline"} == 0
    for: 1m
    labels:
      severity: critical
    annotations:
      summary: "Servicio KYC {{ $labels.job }} caido"
      description: "El servicio {{ $labels.job }} no responde desde hace mas de 1 minuto."

  - alert: KYCFaceMatchWorkersLow
    expr: |
      kube_deployment_status_replicas_available{
        deployment="face-match-service", namespace="kyc-pipeline"
      } < 2
    for: 2m
    labels:
      severity: critical
    annotations:
      summary: "Workers de face matching insuficientes"
      description: "Solo {{ $value }} replicas disponibles de face-match-service. Minimo requerido: 2."

  - alert: KYCPodRestartLoop
    expr: |
      increase(kube_pod_container_status_restarts_total{
        namespace="kyc-pipeline"
      }[1h]) > 5
    for: 5m
    labels:
      severity: warning
    annotations:
      summary: "Pod {{ $labels.pod }} en restart loop"
      description: "El pod {{ $labels.pod }} se ha reiniciado {{ $value }} veces en la ultima hora."
  1. Definir alertas de latencia del pipeline de verificacion:
# kyc-latency-alerts.yaml
groups:
- name: kyc-latency
  rules:
  - alert: KYCHighLatencyP99
    expr: |
      histogram_quantile(0.99,
        sum(rate(kyc_verification_duration_seconds_bucket{namespace="kyc-pipeline"}[5m]))
        by (le)
      ) > 8
    for: 5m
    labels:
      severity: warning
    annotations:
      summary: "Latencia p99 del pipeline KYC supera 8 segundos"
      description: "La latencia p99 es {{ $value }}s, superando el SLO de 8 segundos."

  - alert: KYCHighLatencyP99Critical
    expr: |
      histogram_quantile(0.99,
        sum(rate(kyc_verification_duration_seconds_bucket{namespace="kyc-pipeline"}[5m]))
        by (le)
      ) > 15
    for: 2m
    labels:
      severity: critical
    annotations:
      summary: "Latencia p99 critica: {{ $value }}s"
      description: "La latencia p99 duplica el SLO. Investigar inmediatamente."
  1. Configurar inhibiciones para evitar alertas redundantes en cascada:
# En alertmanager-config.yaml
inhibit_rules:
- source_match:
    alertname: "KYCServiceDown"
  target_match:
    severity: "warning"
  equal: ["service"]
  # Si un servicio esta caido, suprimir warnings de latencia/calidad de ese servicio

- source_match:
    alertname: "KYCFaceMatchWorkersLow"
    severity: "critical"
  target_match:
    alertname: "KYCHighLatencyP99"
  equal: ["namespace"]
  # Si hay workers insuficientes, la alerta de latencia es consecuencia
  1. Configurar reglas de silenciamiento temporal para ventanas de mantenimiento:
# Crear silence para mantenimiento planificado
amtool silence add \
  --alertmanager.url=http://alertmanager:9093 \
  --author="health_monitor_agent" \
  --comment="Mantenimiento planificado: actualizacion modelo ArcFace" \
  --duration=2h \
  namespace="kyc-pipeline" \
  service="face-match"
  1. Desplegar Alertmanager en Kubernetes como StatefulSet para alta disponibilidad:
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: alertmanager
  namespace: monitoring
spec:
  replicas: 3
  serviceName: alertmanager
  selector:
    matchLabels:
      app: alertmanager
  template:
    spec:
      containers:
      - name: alertmanager
        image: prom/alertmanager:v0.27.0
        args:
        - "--config.file=/etc/alertmanager/alertmanager.yml"
        - "--cluster.peer=alertmanager-0.alertmanager:9094"
        - "--cluster.peer=alertmanager-1.alertmanager:9094"
        - "--cluster.peer=alertmanager-2.alertmanager:9094"
        ports:
        - containerPort: 9093
        - containerPort: 9094

Notes

  • Las alertas criticas del pipeline KYC (servicio caido, FAR elevado, error budget agotado) deben tener un for corto (1-2 minutos) y notificar via PagerDuty; las alertas warning pueden tener un for mas largo (5-15 minutos) y notificar solo via Slack para evitar fatiga de alertas.
  • Configurar inhibiciones es esencial para el pipeline KYC donde los fallos son frecuentemente en cascada: si face-match esta caido, la alerta de latencia del pipeline completo es redundante y debe suprimirse.
  • Revisar y ajustar los umbrales de alerta mensualmente basandose en datos reales del pipeline; los valores iniciales de FAR < 0.1% y FRR < 5% son los objetivos del CLAUDE.md pero pueden necesitar calibracion segun el mix de documentos y poblacion de usuarios.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.08%
按下载量换算24

Claude

29.88%
按下载量换算21

Cursor

20.3%
按下载量换算14

Gemini CLI

10.35%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills