Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.02 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.02 KB

newrelic_exporter

Exports New Relic applications metrics data as prometheus metrics.

Configuration

You must add New Relic applications that you want to export metrics in the config.yml file:

applications:
  - id: 31584797            #New Relic application ID
    name: My Application    #New Relic application name

Running

./newrelic_exporter --newrelic.api-key=${NEWRELIC_API_KEY} --config=config.yml

Or with docker:

docker run -p 9112:9112 -v /path/to/my/config.yml:/config.yml -e "NEWRELIC_API_KEY=${NEWRELIC_API_KEY}" caninjas/newrelic_exporter

Flags

Name Description
web.listen-address Address to listen on for web interface and telemetry (default :9112)
web.telemetry-path Path under which to expose metrics (default /metrics)
newrelic.api-key Your New Relic API key (required)
config Your configuration file path (default config.yml)