Newrelic

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

kbarbel640-del Updated 1 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

kbarbel640-del/skills/tree/main/skills/mrgoodb/newrelic commit f9baf5262c

Frequently asked questions

npx skillmds@latest add kbarbel640-del/newrelic