Exports New Relic applications metrics data as prometheus metrics.
You must add New Relic applications that you want to export metrics in the config.yml
file:
loglevel: INFO # (optional) set log level default INFO
timespan: 1 # (optional) timespan the summary of apdexmetrics will be retrieved (last x minutes) default 1
applications:
- id: 31584797 #New Relic application ID
name: My Application #New Relic application name
./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}" willlie1/newrelic_exporter
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 ) |