Created
January 29, 2015 13:54
-
-
Save martinrusev/530d84101fb709da68b7 to your computer and use it in GitHub Desktop.
Custom Amon Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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