diff options
author | nico <nico@magicbroccoli.de> | 2020-06-17 00:41:59 +0200 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2020-06-17 00:41:59 +0200 |
commit | 990d3abdc60bea8a525d4fbdc56cdff2e44947ce (patch) | |
tree | 2a1b921134fdcc19df981a9b2e1a7804a262125b /metrics.py | |
parent | c7bf9f6b9f186b1eb24bd3d3665f04fafeb68246 (diff) |
add more global values
+ add global uptime value
+ add global processes count value
Diffstat (limited to 'metrics.py')
-rwxr-xr-x | metrics.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -210,6 +210,10 @@ class EjabberdMetrics(EjabberdCtl): data = { "registered": self.get_registered(), "muc": self.get_muc(), + "s2s_in": self.get_s2s_in(), + "s2s_out": self.get_s2s_out(), + "uptime": self.fetch_uptime(), + "processes": self.fetch_processes(), "online_by_status": self.get_online_by_status(), "online_by_client": self.get_online_by_client(), "online_by_ipversion": self.get_online_by_ipversion(), @@ -229,9 +233,7 @@ class EjabberdMetrics(EjabberdCtl): data["online_client_by_ipversion"] = self.get_online_client_by_ipversion() data["nodes"] = nodes - - data["s2s_in"] = self.get_s2s_in() - data["s2s_out"] = self.get_s2s_out() + return data |