mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 02:18:08 +00:00
Added Comet Backup plugin
This commit is contained in:
parent
eb9d7fa2a1
commit
836ec47f1f
10 changed files with 448 additions and 0 deletions
22
plugins/comet/comet_latency
Normal file
22
plugins/comet/comet_latency
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
from comet_server import CometServer
|
||||
|
||||
def config():
|
||||
print('graph_title Comet API Latency')
|
||||
print('graph_category Comet')
|
||||
print('apitime.label API time (ms)')
|
||||
print('apitime.colour 58b154')
|
||||
|
||||
|
||||
def main():
|
||||
cs = CometServer()
|
||||
print("apitime.value " + str(cs.getAPITime()))
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) > 1 and sys.argv[1] == 'config':
|
||||
config()
|
||||
else:
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue