Skip to main content

Collection of Supervisor plugins to provide metrics and monitoring within New Relic

Project description

https://codeship.com/projects/aba10710-9dfd-0134-7e83-328bd15b6072/status?branch=master https://badge.fury.io/py/supervisor_newrelic.svg https://img.shields.io/badge/language-Python-blue.svg https://img.shields.io/badge/license-MIT-blue.svg

supervisor_newrelic

Collection of Supervisor plugins to provide metrics and monitoring within New Relic.

status plugin

This plugin should be subscribed to the PROCESS_STATE events. It sends an event to New Relic every time a process changes state.

Installation & Configuration

Register an Insights API Insert Key

Install via pip:

pip install supervisor_newrelic

Create a new configuration file: /etc/supervisor.d/newrelic.conf with contents:

[eventlistener:newrelic_status]
command = supervisor_newrelic_status --account <NEWRELIC_ACCOUNT_NO> --key <NEWRELIC_KEY>
events = PROCESS_STATE

Where:

  • NEWRELIC_ACCOUNT_NO gets replaced with your NewRelic account number (e.g. 1121234)

  • NEWRELIC_KEY gets replaced with the Insights API Insert Key (as registered earlier - e.g. VkiYX90CZxxPl7FuQAxrQXNv5gZnx80e)

Reload the supervisord configuration:

supervisorctl reread

You should now start to see events in New Relic Insights in the Custom Events section named Supervisor:Status. Each event will have the following attributes:

  • processName: The name of the process which changed status

  • groupName: The name of the group which changed status

  • status: The status it changed to

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supervisor_newrelic-1.0.10.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file supervisor_newrelic-1.0.10.tar.gz.

File metadata

File hashes

Hashes for supervisor_newrelic-1.0.10.tar.gz
Algorithm Hash digest
SHA256 e1dea89a65ddd9650dfdc573a4518b06c3ea9848b2c0d7701527a39cffddf901
MD5 d805023fcbbc7ad6bd897b4514323ca8
BLAKE2b-256 de17d44ca1ca43a5dee17aae279fbe81b2083586487c95d98d32ad2406ec5982

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page