Skip to content

Instantly share code, notes, and snippets.

@martinrusev
Created January 29, 2015 13:54
Show Gist options
  • Select an option

  • Save martinrusev/530d84101fb709da68b7 to your computer and use it in GitHub Desktop.

Select an option

Save martinrusev/530d84101fb709da68b7 to your computer and use it in GitHub Desktop.
Custom Amon Plugin
from amonagent.modules.plugins import AmonPlugin
class AmonPlugin(AmonPlugin):
def collect(self):
self.gauge('requests.per.second', requests_per_second)
self.counter('purchases', purchases)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment