Community程式設計與開發github.com

ComposioHQ/New-Relic-Automation

透過 Composio MCP 整合自動化 New Relic 的可觀測性工作流程,包括管理警示政策、通知頻道、警示條件,以及監控應用程式和瀏覽器應用。

New-Relic-Automation 是什麼?

這個技能讓開發者能夠透過 Composio MCP 伺服器,完全自動化 New Relic 的警示與監控工作流程。您可以建立和管理警示政策、設定多種通知頻道(如電子郵件、Slack、Webhook、PagerDuty),以及檢視和操作 APM 應用程式與瀏覽器應用程式。技能支援從列出警示政策、建立政策與頻道,到刪除政策與更新頻道的完整生命週期管理。它特別適合用於跨應用管線中的自動化警示整合,並且能有效處理分頁與多種頻道設定細節。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComposioHQ/awesome-codex-skills/tree/main/composio-skills/new-relic-automation

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

New Relic 自動化

自動化您的 New Relic 可觀測性工作流程——建立和管理警示政策、設定通知頻道(電子郵件、Slack、Webhook、PagerDuty)、監控 APM 應用程式、檢查警示條件,並將 New Relic 警示整合到跨應用管線中。

工具套件文件: composio.dev/toolkits/new_relic


設定

  1. 將 Composio MCP 伺服器新增至您的用戶端:https://rube.app/mcp
  2. 依提示連接您的 New Relic 帳號(API 金鑰驗證)
  3. 開始使用下列工作流程

核心工作流程

1. 列出警示政策

使用 NEW_RELIC_GET_ALERT_POLICIES 來探索現有的警示政策,並可選擇性篩選。

工具:NEW_RELIC_GET_ALERT_POLICIES
輸入:
  - name: 字串(選填,支援部分比對)
  - incident_preference: "PER_POLICY" | "PER_CONDITION" | "PER_CONDITION_AND_TARGET"
  - page: 整數(從 1 開始的分頁)

2. 建立警示政策

使用 NEW_RELIC_CREATE_ALERT_POLICY 來建立新的政策容器,用於容納警示條件。

工具:NEW_RELIC_CREATE_ALERT_POLICY
輸入:
  - name: 字串(必填)——在帳戶內必須唯一
  - incident_preference: "PER_POLICY" | "PER_CONDITION" | "PER_CONDITION_AND_TARGET"(預設:PER_POLICY)

事件偏好說明:

  • PER_POLICY —— 每個政策一個問題(建議用於大多數使用情境)
  • PER_CONDITION —— 每個警示條件一個問題
  • PER_CONDITION_AND_TARGET —— 每個條件及訊號/目標一個問題

3. 建立警示通知頻道

使用 NEW_RELIC_CREATE_ALERT_CHANNEL 來註冊通知端點,以便發送警示。

工具:NEW_RELIC_CREATE_ALERT_CHANNEL
輸入:
  - type: "email" | "slack" | "webhook" | "pagerduty" | "opsgenie" | "victorops"(必填)
  - name: 字串(必填)——人類可讀的頻道名稱
  - configuration: 物件(必填)——依類型而異:
    Email:     { recipients: "[email protected],[email protected]" }
    Slack:     { url: "<slack_webhook_url>", channel: "alerts" }
    Webhook:   { url: "https://hooks.example.com/alerts", auth_username, auth_password }
    PagerDuty: { service_key: "<integration_key>" }
    OpsGenie:  { api_key, recipients, tags, teams }
    VictorOps: { key: "<api_key>", route_key: "<routing_key>" }

4. 取得政策的警示條件

使用 NEW_RELIC_GET_ALERT_CONDITIONS 來檢查附加到特定政策的條件。

工具:NEW_RELIC_GET_ALERT_CONDITIONS
輸入:
  - policy_id: 整數(必填)

5. 監控應用程式

使用 NEW_RELIC_GET_APPLICATIONS 和 NEW_RELIC_GET_BROWSER_APPLICATIONS 來列出 APM 及瀏覽器監控的應用程式。

工具:NEW_RELIC_GET_APPLICATIONS
輸入:
  - name: 字串(選填,不區分大小寫的部分比對)
  - host: 字串(選填,不區分大小寫的部分比對)
  - ids: 字串(選填,以逗號分隔的應用程式 ID 列表)
  - page: 整數(從 1 開始)

工具:NEW_RELIC_GET_BROWSER_APPLICATIONS
輸入:
  - filter[name]: 字串(選填,不區分大小寫的部分比對)
  - page: 整數(從 1 開始)

6. 管理頻道與政策

使用 NEW_RELIC_UPDATE_ALERT_CHANNEL 來修改現有頻道,以及 NEW_RELIC_DELETE_ALERT_POLICY 來刪除政策。

工具:NEW_RELIC_UPDATE_ALERT_CHANNEL
輸入:
  - alert_channel_id: 整數(必填)
  - name: 字串(選填)
  - type: 字串(選填,僅用於變更類型)
  - configuration: 物件(選填,欄位依類型而異)

工具:NEW_RELIC_DELETE_ALERT_POLICY
輸入:
  - policy_id: 字串(必填)——要刪除的政策 ID

已知陷阱

陷阱詳細說明
唯一政策名稱NEW_RELIC_CREATE_ALERT_POLICY 要求名稱在帳戶內必須唯一。
頻道設定因類型而異NEW_RELIC_CREATE_ALERT_CHANNEL 的 configuration 物件根據頻道類型有不同的必填欄位(例如電子郵件需要 recipients,PagerDuty 需要 service_key)。
需要分頁所有列表端點都會回傳分頁結果。請迭代頁面直到結果耗盡。
政策 ID 類型不符NEW_RELIC_GET_ALERT_CONDITIONS 預期 policy_id 為整數,而 NEW_RELIC_DELETE_ALERT_POLICY 預期為字串。
頻道與政策的關聯建立頻道後,您必須另外將其與政策關聯,警示才能流向該頻道。

快速參考

工具別名說明
NEW_RELIC_GET_ALERT_POLICIES列出警示政策(可選擇性篩選)
NEW_RELIC_CREATE_ALERT_POLICY建立新的警示政策
NEW_RELIC_DELETE_ALERT_POLICY依 ID 刪除警示政策
NEW_RELIC_CREATE_ALERT_CHANNEL建立通知頻道(電子郵件、Slack、Webhook 等)
NEW_RELIC_GET_ALERT_CHANNELS列出所有已設定的警示頻道
NEW_RELIC_UPDATE_ALERT_CHANNEL更新現有的警示頻道
NEW_RELIC_GET_ALERT_CONDITIONS取得政策的警示條件
NEW_RELIC_GET_APPLICATIONS列出 APM 應用程式
NEW_RELIC_GET_BROWSER_APPLICATIONS列出瀏覽器監控的應用程式

由 Composio 提供技術支援

Individual skills in this repo

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

ComposioHQ/-21risk-automation

Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/-2chat-automation

Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/ably-automation

Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abstract-automation

Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abuselpdb-automation

Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/abyssale-automation

Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accelo-automation

Automate Accelo tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/accredible-certificates-automation

Automate Accredible Certificates tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/acculynx-automation

Automate Acculynx tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/active-campaign-automation

Automate ActiveCampaign tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/addresszen-automation

Automate Addresszen tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adobe-automation

Automate Adobe tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adrapid-automation

Automate Adrapid tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/adyntel-automation

Automate Adyntel tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aeroleads-automation

Automate Aeroleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/aero-workflow-automation

Automate Aero Workflow tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinda-automation

Automate Affinda tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/affinity-automation

Automate Affinity tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agencyzoom-automation

Automate Agencyzoom tasks via Rube MCP (Composio). Always search tools first for current schemas.

ComposioHQ/agent-deep-links

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

相關技能