Skip to content

This app is meant as an example of how you can use various APIs at New Relic to look at usage and insights data.

Notifications You must be signed in to change notification settings

danstadler-pdx/nr-api-example-app

Repository files navigation

nr-billing-usage

Grails app which uses the Usage and Insights APIs to help with departmental chargebacks


This app requires 3 external configuration files, which you MUST NOT check in to source.


All config files use ## to indicate comment lines. App probably doesn't handle blank lines so well so don't leave any in there.


.starter-accounts

format:
name:accountID:[valid insights API query key]

.starter-apikeys

This just should have one non-comment line, with the word "usage" and then a valid Usage API key:
usage:[valid key]

.starter-departments

This is a mapping of applications to departments, and also groups departments into 'environments', see below for how environments are used for pricing. Any app in your data, not mapped here, will just be listed in [no department] each row is [app name]:[department name]:[environment name]
example:
my application:my department:PROD

Then, you can add more lines for a mapping of environment -> pricing. This will be used in the UI to compute a grand total price based on the grand total hours for the department.
example:
PRICING:PROD:.50
PRICING:DEV:.30

About

This app is meant as an example of how you can use various APIs at New Relic to look at usage and insights data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published