Script to record deployments in NewRelic's App timeline
- 04/24/2017 - v1 - First Stable Release
jq, a command-line JSON processor
Conf File: Store you NewRelic API Key inside nrd.conf.
Remember to set the var "SCRIPTCONFFILE" in the script with the absolute path to this file.
Legend | Description |
---|---|
API_KEY | your API Key to access NewRelic API environment |
$ cat nrd.conf
API_KEY=bm90IG15IHJlYWwga2V5
Command Line:
nrd -a <app> -c <changelog> -d <description> -r <revision> -u <user>
app: App Name (duh)
changelog: file added, file changed, file removed, etc
description: quick description about some new behavior or so
revision: Revision Number
user: User who made the deploy
Notice: Remember to use quotation marks in changelog and description, you know, for best practices.
Example:
$ nrd -a myapp -c "Added: index.php, Removed: None" -d "Index Added for the new site" -r "001" -u "developer@example.com"