remove "open sessions" check (#50375)
This commit is contained in:
parent
3a9cc02884
commit
e6a7c98ab4
|
@ -38,7 +38,6 @@ eo_rabbitmq = Gauge("eo_rabbitmq", "rabbitmq", ["ctn"], registry=registry)
|
|||
eo_threads = Gauge("eo_threads", "system threads", ["ctn"], registry=registry)
|
||||
eo_units = Gauge("eo_units", "systemd units", ["ctn", "state"], registry=registry)
|
||||
eo_packages = Gauge("eo_packages", "packages", ["ctn", "state"], registry=registry)
|
||||
eo_sessions = Gauge("eo_sessions", "sessions", ["ctn"], registry=registry)
|
||||
|
||||
|
||||
def run(cmd):
|
||||
|
@ -188,11 +187,6 @@ def rabbitmq(ctn):
|
|||
eo_rabbitmq.labels(ctn).inc(int(i))
|
||||
|
||||
|
||||
def sessions(ctn):
|
||||
n = len(psutil.users())
|
||||
eo_sessions.labels(ctn).set(n)
|
||||
|
||||
|
||||
def threads(ctn):
|
||||
for p in psutil.process_iter():
|
||||
eo_threads.labels(ctn).inc(p.num_threads())
|
||||
|
@ -239,7 +233,6 @@ if __name__ == "__main__":
|
|||
packages,
|
||||
postgresql,
|
||||
rabbitmq,
|
||||
sessions,
|
||||
threads,
|
||||
units,
|
||||
run_in_machines,
|
||||
|
|
Loading…
Reference in New Issue