Communityコーディング&開発github.com

ComposioHQ/New-Relic-Automation

New Relic の可観測性ワークフローを自動化:アラートポリシー、通知チャネル、アラート条件の管理、アプリケーションおよびブラウザアプリの監視を Composio MCP 統合で実現します。

New-Relic-Automation とは?

このスキルは、New Relic の可観測性ワークフローを自動化するためのツールセットです。Composio MCP サーバーを介して、アラートポリシーの作成・一覧・削除、メール・Slack・Webhook・PagerDuty など様々な種類の通知チャネルの作成・更新、APM アプリケーションやブラウザ監視アプリケーションの一覧取得、特定ポリシーに紐づくアラート条件の取得など、主要な New Relic アラート管理操作を効率的に実行できます。開発者や運用チームは、New Relic の API を直接叩くことなく、自然言語の指示や自動化スクリプトからこれらの操作を行えるため、インシデント対応の迅速化やクロスアプリケーションパイプラインへの統合が容易になります。このスキルは Compoio プラットフォーム上で動作し、クライアント側に Composio MCP サーバーを追加することで利用可能です。アラートポリシー名の一意性要件やページネーション、チャネルタイプごとの設定差異など、実運用上の注意点もドキュメントでカバーされています。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

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 -- ポリシーごとに 1 件の問題(ほとんどのユースケースで推奨)
  • PER_CONDITION -- アラート条件ごとに 1 件の問題
  • PER_CONDITION_AND_TARGET -- 条件とシグナル/ターゲットの組み合わせごとに 1 件の問題

3. アラート通知チャネルの作成

NEW_RELIC_CREATE_ALERT_CHANNEL を使用して、アラート配信の通知エンドポイントを登録します。

ツール: NEW_RELIC_CREATE_ALERT_CHANNEL
入力:
  - type: "email" | "slack" | "webhook" | "pagerduty" | "opsgenie" | "victorops" (必須)
  - name: 文字列 (必須) -- 人間が読めるチャネル名
  - configuration: オブジェクト (必須) -- タイプによって異なります:
    メール:     { 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_APPLICATIONSAPM アプリケーションを一覧表示
NEW_RELIC_GET_BROWSER_APPLICATIONSブラウザ監視アプリケーションを一覧表示

Powered by 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.

関連スキル