Exports new relic insights metrics data as prometheus metrics.
Metrics are exposed according config file inside src folder and supports json and yaml extension.
Before starting, create a config file. If necessary, use the .example
files provided above.
You will need QUERY_KEY and APP_ID from new relic account.
To run:
docker run -p 9696:9696 -e "QUERY_KEY=****" -e "APP_ID=****" caninjas/newrelic_insights_exporter
Clone this repo and go to newrelic_insights_exporter folder:
> git clone git@github.com:ContaAzul/newrelic_insights_exporter.git
> cd newrelic_insights_exporter
Install dependencies with npm install
command and run with:
APP_ID='****' QUERY_KEY='****' npm start
Metrics will be exposed in localhost:9696/metrics