Skip to content

isabella232/nginx-nr-agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx New Relic Plugin

This is a re-implementation of the official NGiNX New Relic plugin in Go so that it compiles down to a static binary with no Python runtime required. It only grabs the stats that are including the http-stub-status module and does not add all the stats available from NGiNX Plus.

Aside from being just a static binary, it's also a 12-factor app which is good for running in containers:

  • All configuration is from environment variables
  • Logging is to stdout

On startup the plugin prints its configuration to the log so you can see how it ran.

Example Config

AGENT_NEW_RELIC_APP_NAME="NGiNX Gateway Foo" \
AGENT_STATS_URL=http://localhost:32768/health \
AGENT_NEW_RELIC_LICENSE_KEY="<your license key here>" \
./nginx-nr-agent

You can also change the New Relic API URL used like this:

AGENT_NEW_RELIC_API_URL="<your url here>"

Generally this is not a setting you'll need to change.

About

12-factor, Go re-implementation of the Nginx New Relic plugin

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%