Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
/ vnr Public archive

This is a plugin for NewRelic that monitors `varnishstat`.

License

Notifications You must be signed in to change notification settings

Nalum/vnr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Varnish-NewRelic

This is a plugin for NewRelic that reads from varnishstat and reports the data to NewRelic.

Build Status Coverage Status GPL License GitHub Release

Config

This plugin reads from a JSON config file of the following format, the values here are the defaults:

{
    "key": null,
    "instances": [],
    "interval": 1,
    "varnishstat": {
        "type": "command",
        "path": null
    }
}

Available options:

  • key : This is the NewRelic API Key for your account.
  • instances : This is a list of Varnish instance names. Leave empty if you haven't specified your own name for Varnish instances.
  • interval : The number of seconds to wait between each stat check.
    Note: NewRelic only accepts data once a minute so this data will be processed and then once a minute the data will be sent.
  • varnishstat.type : This tells the agent if we are going to use the varnishstat command or if we are going to use the output file of the varnishstat command.
    Possible values are:
  • command
  • file
  • varnishstat.path : If varnishstat.type is set to file this must be set to the path of the varnishstat output file.

This config file should be located in /etc and called vnr.json and be readable by the user vnr.

Running the Plugin

You can install this plugin by downloading install.sh file from this repository and executing the file as the root user. This will download the latest release from github and set it up on your system, creating all the required files.

The install script can setup a systemd or upstart init file for you and have it start up with the your server. During installation, if you have not already created the config file, you will be asked for your NewRelic API Key, a list of Varnish instance names and an interval value in seconds, the config file will then be created for you in /etc/vnr.json. If the file already exists the install script will skip that part of the setup. Finally the install script will download the latest version and install it in /usr/local/bin as vnr.

About

This is a plugin for NewRelic that monitors `varnishstat`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages