This repository provides a tool to manage New Relic resources via newrelic-api python lib
Resource | List | Show | Update | Delete | Create | Backup | Restore |
---|---|---|---|---|---|---|---|
Users | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
Applications | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ⚪ |
Dashboards | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ⚪ |
Alerts Policies | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ❌ |
Alerts Channels | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ❌ |
Alerts NRQL Conditions | ⚪ | ❌ | ⚪ | ⚪ | ⚪ | ⚪ | ⚪ |
✅ Supported
⚪ Todo
❌ Not support
Arguments | Default | Description |
---|---|---|
-h or --help |
N/A | Help information |
-k or --key |
N/A | New Relic API Key |
-s or --save |
False | Save output to local |
-i or --api |
N/A | Choice an Rest API (applications, dashboards, users etc.) |
-f or --function |
N/A | Choice an function (list, show, backup etc.) |
--format |
yaml | Support Json and Yaml default is Json |
--filter |
all | Apply filter (ex: --filter title="SRE") |
-r or --restore |
N/A | Give a backup file path to restore |
./run.sh -k {new relic api key} -f {function} --api {api name} --format {json|yaml} --filter {filter name}={filter value}
Examples:
./run.sh -k XXXXXXXXX -f show --api dashboards --format json --filter id="123"
- Python 3