monitoring.py/exporter/cli.py
2019-12-30 16:18:42 +01:00

8 lines
297 B
Python

import socket
class Cli:
def __init__(self):
self.servername = socket.gethostname()
def gauge(self, name, value):
print("g|server."+self.servername+"."+name+" "+str(value))
def incr(self, name, value):
print("i|server."+self.servername+"."+name+" "+str(value))