monitoring.py/exporter/cli.py

9 lines
297 B
Python
Raw Normal View History

2019-12-30 15:18:42 +00:00
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))