9 lines
297 B
Python
9 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))
|