Sphinx monitoring plugin for NewRelic
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
data_source.go
metrica.go
sphinx_agent.go

README.md

Newrelic agent for Sphinx search engine

Build Status

Installation

If you have not Go compiler in your system:
sudo apt-get install golang

Install dependencies:
sudo go get github.com/yunge/sphinx sudo go get github.com/yvasiyarov/newrelic_platform_go

Get and build agent:
git clone https://github.com/yvasiyarov/newrelic_sphinx.git cd newrelic_sphinx go build -o sphinx_agent

Run agent in debug mode:
./sphinx_agent --verbose=true --sphinx-host=127.0.0.1 --sphinx-port=9312 --newrelic-license=[your newrelic license key]

In production mode you can run it with nohup:
nohup ./sphinx_agent --sphinx-host=127.0.0.1 --sphinx-port=9312 --newrelic-license=[your newrelic license key]

If you run several Sphinx instances, you can pass instance name in newrelic-name argument: --newrelic-name "sphinx01.application.com"