skills/newrelic-cli-skills/alerts/SKILL.md
This subskill should be used when managing New Relic alert policies, APM or NRQL conditions, notification channels, or open incidents with the New Relic CLI. Use the parent newrelic-cli-skills skill for setup and routing.
npx skillsauth add kilo-org/kilo-marketplace newrelic-cli-alertsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage alert policies, conditions, and notification channels via CLI.
newrelic alerts policy list
newrelic alerts policy get --policyId <ID>
newrelic alerts policy create \
--name "My App - Performance" \
--incidentPreference "PER_CONDITION_AND_TARGET"
Incident preference options:
PER_POLICY — one incident per policy breachPER_CONDITION — one incident per conditionPER_CONDITION_AND_TARGET — most granular, one per condition+entitynewrelic alerts conditions list --policyId <POLICY_ID>
newrelic alerts apmCondition create \
--policyId <POLICY_ID> \
--name "High Response Time" \
--type "apm_app_metric" \
--metric "response_time_web" \
--conditionScope "application" \
--violationCloseTimer 24 \
--threshold 2.0 \
--thresholdDuration 5 \
--thresholdOccurrences "ALL"
newrelic alerts conditions delete --conditionId <ID>
newrelic alerts nrqlCondition static create \
--policyId <POLICY_ID> \
--name "Error Rate > 5%" \
--query "SELECT percentage(count(*), WHERE error IS true) FROM Transaction WHERE appName='my-app'" \
--threshold 5 \
--thresholdDuration 5 \
--thresholdOccurrences "ALL" \
--violationTimeLimitSeconds 86400
# List channels
newrelic alerts channel list
# Create email channel
newrelic alerts channel create \
--name "On-Call Email" \
--type email \
--configuration '{"recipients": "[email protected]", "include_json_attachment": false}'
newrelic nrql query --accountId $NEW_RELIC_ACCOUNT_ID --query "
SELECT *
FROM NrAiIncident
WHERE event = 'open'
SINCE 24 hours ago
LIMIT 20
"
newrelic entity search --name "my-app" --type APPLICATION --domain APM | \
jq '.[] | {name, alertSeverity}'
Severity values: NOT_CONFIGURED, NOT_ALERTING, WARNING, CRITICAL
development
Oracle Database guidance for SQL, PL/SQL, SQLcl, ORDS, administration, app development, performance, security, migrations, and agent-safe database workflows. Use when the user asks to write, edit, rewrite, review, format, debug, tune, or explain SQL; create or refactor PL/SQL; use SQLcl, Liquibase, ORDS, JDBC, node-oracledb, Python, Java, .NET, or database frameworks; troubleshoot queries, sessions, locks, waits, indexes, optimizer plans, AWR, ASH, migrations, schemas, users, roles, privileges, backup, recovery, Data Guard, RAC, multitenant, containers, monitoring, auditing, encryption, VPD, or safe agent database operations.
documentation
Patterns for reading and writing oleander Iceberg catalog tables in Spark jobs, including naming conventions, write modes, and catalog hierarchy.
data-ai
Integrate Okta for enterprise identity workflows including OIDC login, group claims, and policy-based access controls. Use when implementing workforce or B2B identity scenarios.
documentation
Use when arranging Apache NiFi processors, process groups, ports, comments, numbering, crossing connections, dense fan-in/fan-out, or reusable readable canvas layouts.