Awesome-claude-skills-cn New Relic Automation
通过 Composio MCP 集成自动化 New Relic 可观测性工作流——管理告警策略、通知渠道、告警条件并监控应用程序和浏览器应用。
install
source · Clone the upstream repo
git clone https://github.com/Athe1st3154/awesome-claude-skills-cn
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Athe1st3154/awesome-claude-skills-cn "$T" && mkdir -p ~/.claude/skills && cp -r "$T/composio-skills/new-relic-automation" ~/.claude/skills/athe1st3154-awesome-claude-skills-cn-new-relic-automation && rm -rf "$T"
manifest:
composio-skills/new-relic-automation/SKILL.mdsource content
New Relic Automation
Automate your New Relic observability workflows -- create and manage alert policies, configure notification channels (email, Slack, webhook, PagerDuty), monitor APM applications, inspect alert conditions, and integrate New Relic alerting into cross-app pipelines.
Toolkit docs: composio.dev/toolkits/new_relic
设置
- Add the Composio MCP server to your client:
https://rube.app/mcp - Connect your New Relic account when prompted (API key authentication)
- Start using the workflows below
Core Workflows
1. List Alert Policies
Use
NEW_RELIC_GET_ALERT_POLICIES to discover existing alert policies with optional filtering.
Tool: NEW_RELIC_GET_ALERT_POLICIES Inputs: - name: string (optional, partial match supported) - incident_preference: "PER_POLICY" | "PER_CONDITION" | "PER_CONDITION_AND_TARGET" - page: integer (1-indexed pagination)
2. Create an Alert Policy
Use
NEW_RELIC_CREATE_ALERT_POLICY to set up a new policy container for alert conditions.
Tool: NEW_RELIC_CREATE_ALERT_POLICY Inputs: - name: string (required) -- must be unique within the account - incident_preference: "PER_POLICY" | "PER_CONDITION" | "PER_CONDITION_AND_TARGET" (default: PER_POLICY)
Incident preferences explained:
-- one issue per policy (recommended for most use cases)PER_POLICY
-- one issue per alert conditionPER_CONDITION
-- one issue per condition and signal/targetPER_CONDITION_AND_TARGET
3. Create Alert Notification Channels
Use
NEW_RELIC_CREATE_ALERT_CHANNEL to register notification endpoints for alert delivery.
Tool: NEW_RELIC_CREATE_ALERT_CHANNEL Inputs: - type: "email" | "slack" | "webhook" | "pagerduty" | "opsgenie" | "victorops" (required) - name: string (required) -- human-readable channel name - configuration: object (required) -- varies by type: Email: { recipients: "devops@example.com,oncall@example.com" } 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. Get Alert Conditions for a Policy
Use
NEW_RELIC_GET_ALERT_CONDITIONS to inspect the conditions attached to a specific policy.
Tool: NEW_RELIC_GET_ALERT_CONDITIONS Inputs: - policy_id: integer (required)
5. Monitor Applications
Use
NEW_RELIC_GET_APPLICATIONS and NEW_RELIC_GET_BROWSER_APPLICATIONS to list APM and browser-monitored apps.
Tool: NEW_RELIC_GET_APPLICATIONS Inputs: - name: string (optional, case-insensitive partial match) - host: string (optional, case-insensitive partial match) - ids: string (optional, comma-separated list of app IDs) - page: integer (1-indexed) Tool: NEW_RELIC_GET_BROWSER_APPLICATIONS Inputs: - filter[name]: string (optional, case-insensitive partial match) - page: integer (1-indexed)
6. Manage Channels and Policies
Use
NEW_RELIC_UPDATE_ALERT_CHANNEL to modify existing channels and NEW_RELIC_DELETE_ALERT_POLICY to remove policies.
Tool: NEW_RELIC_UPDATE_ALERT_CHANNEL Inputs: - alert_channel_id: integer (required) - name: string (optional) - type: string (optional, only to change type) - configuration: object (optional, fields vary by type) Tool: NEW_RELIC_DELETE_ALERT_POLICY Inputs: - policy_id: string (required) -- ID of the policy to delete
已知陷阱
| Pitfall | Detail |
|---|---|
| Unique policy names | requires the name to be unique within the account. |
| Channel config varies by type | The object for has different required fields per channel type (e.g., for email, for PagerDuty). |
| Pagination required | All list endpoints return paginated results. Iterate pages until results are exhausted. |
| Policy ID type mismatch | expects as an integer, while expects it as a string. |
| Channel-policy linking | After creating a channel, you must separately associate it with a policy for alerts to flow to that channel. |
快速参考
| Tool Slug | Description |
|---|---|
| List alert policies with optional filtering |
| Create a new alert policy |
| Delete an alert policy by ID |
| Create a notification channel (email, Slack, webhook, etc.) |
| List all configured alert channels |
| Update an existing alert channel |
| Get alert conditions for a policy |
| List APM applications |
| List browser-monitored applications |
由 Composio 提供支持