Newrelic

Monitor applications and infrastructure via New Relic API. Query metrics and manage alerts.

modbender Updated 12 repo stars

File contents

New Relic

Observability platform.

Environment

export NEWRELIC_API_KEY="xxxxxxxxxx"
export NEWRELIC_ACCOUNT_ID="xxxxxxxxxx"

Query NRQL

curl -X POST "https://api.newrelic.com/graphql" \
  -H "API-Key: $NEWRELIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "{ actor { account(id: '$NEWRELIC_ACCOUNT_ID') { nrql(query: \"SELECT count(*) FROM Transaction\") { results } } } }"}'

List Applications

curl "https://api.newrelic.com/v2/applications.json" -H "Api-Key: $NEWRELIC_API_KEY"

Links

modbender/skill-library-mcp/tree/main/data/newrelic commit 50e49ee823

Frequently asked questions

npx skillmds@latest add modbender/newrelic