Community생산성 & 협업github.com

elastic/kibana-alerting-rules

Kibana 알림 규칙을 REST API 또는 Terraform을 통해 생성하고 관리합니다. 규칙 생성, 업데이트, 수명 주기 관리(활성화, 비활성화, 음소거, 지연) 또는 코드형 규칙 워크플로에 사용하세요.

kibana-alerting-rules란 무엇인가요?

이 스킬은 Kibana 알림 규칙을 REST API 또는 Terraform을 사용하여 프로그래매틱하게 생성하고 관리할 수 있도록 설계되었습니다. Elastic Stack 환경에서 알림을 설정하는 DevOps 엔지니어나 SRE에게 특히 유용하며, 수동 UI 상호작용 없이도 규칙을 코드로 정의하고 배포할 수 있습니다. 지원되는 플랫폼으로는 Kibana REST API와 Terraform이 있으며, 규칙의 전체 수명 주기(생성, 업데이트, 활성화, 비활성화, 음소거, snooze)를 자동화할 수 있습니다. SKILL.md 문서는 각 작업에 대한 구체적인 API 엔드포인트, Terraform 리소스 형식, 인증 방법 및 예제를 제공하여 사용자가 일관된 코드 기반 워크플로를 구축할 수 있도록 돕습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/elastic/agent-skills/tree/main/skills/kibana-alerting-rules

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

kibana-alerting-rules은(는) 무엇을 하나요?

Kibana 알림 규칙을 REST API 또는 Terraform을 통해 생성하고 관리합니다. 규칙 생성, 업데이트, 수명 주기 관리(활성화, 비활성화, 음소거, 지연) 또는 코드형 규칙 워크플로에 사용하세요.

REST API 사용

Kibana REST API를 사용하여 규칙을 생성하고 관리하려면 다음 엔드포인트를 사용하세요:

  • 규칙 생성: POST /api/alerting/rule
  • 규칙 업데이트: PUT /api/alerting/rule/{ruleId}
  • 규칙 활성화: POST /api/alerting/rule/{ruleId}/_enable
  • 규칙 비활성화: POST /api/alerting/rule/{ruleId}/_disable
  • 규칙 음소거: POST /api/alerting/rule/{ruleId}/_mute
  • 규칙 snooze: POST /api/alerting/rule/{ruleId}/_snooze?duration={minutes}

인증

요청에는 Authorization 헤더에 ApiKey 또는 Bearer 토큰을 포함해야 합니다. 자세한 내용은 Kibana API 문서를 참조하세요.

Terraform 사용

Terraform을 사용하여 규칙을 관리하려면 elastic/kibana 공급자를 사용하세요:

resource "elastic_kibana_alerting_rule" "example" {
  name        = "Example Rule"
  rule_type_id = "metrics.alert.threshold"
  consumer     = "alerts"
  schedule     = {
    interval = "1m"
  }
  params = {
    criteria = []
  }
  actions = []
  enabled = true
}

Terraform 공급자 설치 지침은 Elastic Terraform 문서를 참조하세요.

예제

REST API로 규칙 생성

curl -X POST "https://localhost:5601/api/alerting/rule" \
  -H "Content-Type: application/json" \
  -H "Authorization: ApiKey YOUR_API_KEY" \
  -d '{
    "name": "High CPU Alert",
    "rule_type_id": "metrics.alert.threshold",
    "consumer": "alerts",
    "schedule": {"interval": "1m"},
    "params": {
      "criteria": [
        {
          "metric": "cpu_usage",
          "threshold": 0.9,
          "comparator": ">"
        }
      ]
    },
    "actions": []
  }'

Terraform으로 규칙 비활성화

Terraform 리소스에서 enabled = false를 설정한 후 terraform apply를 실행하세요.

참고

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

elastic/cloud-access-management

Manage Elastic Cloud organization access: invite users, assign roles to Serverless projects, and create or revoke Cloud API keys. Use when granting, modifying, or auditing user access.

elastic/cloud-create-project

Creates Elastic Cloud Serverless projects (Elasticsearch, Observability, or Security) via the REST API, saves credentials to file, and bootstraps a scoped Elasticsearch API key. Use when creating a new serverless project, provisioning a search or observability environment, or spinning up a new Elastic Cloud project.

elastic/cloud-manage-project

Manages existing Elastic Cloud Serverless projects: list, get, update, delete, reset credentials, resume, and load saved credentials. Connects to existing projects by resolving endpoints and acquiring scoped Elasticsearch API keys. Use when performing day-2 operations on serverless projects, connecting to an existing project, loading or resetting project credentials, or looking up project details.

elastic/cloud-network-security

Manage Serverless network security (traffic filters): create, update, and delete IP filters and AWS PrivateLink VPC filters. Use when restricting network access or configuring private connectivity.

elastic/cloud-setup

Configures Elastic Cloud authentication and environment defaults. Use when setting up EC_API_KEY, configuring Cloud API access, or when another cloud skill requires credentials.

elastic/elasticsearch-audit

Enable, configure, and query Elasticsearch security audit logs. Use when the task involves audit logging setup, event filtering, or investigating security incidents like failed logins.

elastic/elasticsearch-authn

Authenticate to Elasticsearch using native, file-based, LDAP/AD, SAML, OIDC, Kerberos, JWT, or certificate realms. Use when connecting with credentials, choosing a realm, or managing API keys. Assumes the target realms are already configured.

elastic/elasticsearch-authz

Manage Elasticsearch RBAC: native users, roles, role mappings, document- and field-level security. Use when creating users or roles, assigning privileges, or mapping external realms like LDAP/SAML.

elastic/elasticsearch-esql

Execute ES|QL (Elasticsearch Query Language) queries, use when the user wants to query Elasticsearch data, analyze logs, aggregate metrics, explore data, or create charts and dashboards from ES|QL results.

elastic/elasticsearch-file-ingest

Ingest and transform data files (CSV/JSON/Parquet/Arrow IPC) into Elasticsearch with stream processing and custom transforms. Use when loading files or batch importing data — not for reindexing, general ingest pipeline design, or bulk API patterns.

elastic/elasticsearch-onboarding

Help developers new to Elasticsearch get from zero to a working search experience. Guide them through understanding their intent, mapping their data, and building a search experience with best practices baked in. Use this when the user shows intent to build search-related functionality, asks about Elasticsearch-related concepts for their use case, or expresses the need for help getting started with Elasticsearch.

elastic/elasticsearch-security-troubleshooting

Diagnose and resolve Elasticsearch security errors: 401/403 failures, TLS problems, expired API keys, role mapping mismatches, and Kibana login issues. Use when the user reports a security error.

elastic/kibana-agent-builder

Create and manage Agent Builder agents and custom tools in Kibana. Use when asked to create, update, delete, test, or inspect agents or tools in Agent Builder.

elastic/kibana-audit

Enable and configure Kibana audit logging for saved object access, logins, and space operations. Use when setting up Kibana audit, filtering events, or correlating Kibana and ES audit logs.

elastic/kibana-connectors

Create and manage Kibana connectors for Slack, PagerDuty, Jira, webhooks, and more via REST API or Terraform. Use when configuring third-party integrations or managing connectors as code.

elastic/kibana-dashboards

Create and manage Kibana Dashboards and visualizations. Use when you need to define dashboards and visualizations declaratively, version control them, or automate their deployment.

elastic/kibana-streams

List, inspect, enable, disable, and resync Kibana Streams via the REST API. Use when the user needs stream details, ingest/query settings, queries, significant events, or attachments.

elastic/kibana-vega

Create Vega and Vega-Lite visualizations with ES|QL data sources in Kibana. Use when building custom charts, dashboards, or programmatic panel layouts beyond standard Lens charts.

elastic/observability-edot-dotnet-instrument

Instrument a .NET application with the Elastic Distribution of OpenTelemetry (EDOT) .NET SDK for automatic tracing, metrics, and logs. Use when adding observability to a .NET service that has no existing APM agent.

elastic/observability-edot-dotnet-migrate

Migrate a .NET application from the classic Elastic APM .NET agent to the EDOT .NET SDK. Use when switching from Elastic.Apm.* packages to Elastic.OpenTelemetry.

관련 스킬