ContaAzul / newrelic_insights_exporter

Exports metrics from New Relic Insights for consumption by Prometheus.
Apache License 2.0
5 stars 3 forks source link
blackops metrics monitoring newrelic-insights nodejs prometheus prometheus-exporter sre

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