Skip to content

Exports New Relic applications metrics data as prometheus metrics.

Notifications You must be signed in to change notification settings

willlie1/newrelic_exporter

 
 

Repository files navigation

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:

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

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}" willlie1/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)

About

Exports New Relic applications metrics data as prometheus metrics.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.4%
  • Makefile 3.7%
  • Dockerfile 0.9%