Closed gonzalomerino closed 6 years ago
I'd send this back to the server over the same jsonrpc channel we make all other requests, then let the server talk to graphite/ES. We already do send some really basic queue information at the end of client.py
@gonzalomerino
For resources required by submitted glideins (mem, cpu, gpu ...)
Does this mean you want to know the amount of memory, cpu, and gpu resources requested by each glidein job at the time of submission on the client?
import time
import socket
def collect_metric(name, value, timestamp):
sock = socket.socket()
sock.connect( ("localhost", 2003) )
sock.send("%s %d %d\n" % (name, value, timestamp))
sock.close()
def now():
int(time.time())
collect_metric("metric.name", 42, now())
@gonzalomerino and I talked some more about this ticket yesterday. These are the conclusions we came to:
The scope of this ticket is to add code that allows us to gather monitoring metrics previous to glideins starting. These can be metrics gathered by client.py, and sent back to server.py via socket (or whatever... TBD). Then, we want to gather all the information centrally, and probably insert it in elasticsearch or graphite.
Examples of metrics we can monitor here: