Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Exports metrics from New Relic Insights for consumption by Prometheus.

License

Notifications You must be signed in to change notification settings

ContaAzul/newrelic_insights_exporter

Repository files navigation

newrelic_insights_exporter

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.

Building and Running

You will need QUERY_KEY and APP_ID from new relic account.

With docker:

To run:

docker run -p 9696:9696 -e "QUERY_KEY=****" -e "APP_ID=****" caninjas/newrelic_insights_exporter

From source:

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