aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2020-06-26 01:00:39 +0200
committernico <nico@magicbroccoli.de>2020-06-26 01:00:39 +0200
commitbbf156057f04ff9b05a316e403ed4e090ae6fafc (patch)
tree8ff041d8f336aee37725fc7e983f6cea8bc4a641
parent907d3bdb6171997469b18f32c091885639e3444b (diff)
add new values to influx
+ add uptime and process values to influx exporter
-rw-r--r--influx.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/influx.py b/influx.py
index 2a0dcf5..e5b0065 100644
--- a/influx.py
+++ b/influx.py
@@ -49,6 +49,8 @@ class Influx:
cur_ts = self._timestamp()
data.append(f'ejabberd s2s_in={self._metrics.get_s2s_in()}i {cur_ts}')
data.append(f'ejabberd s2s_out={self._metrics.get_s2s_out()}i {cur_ts}')
+ data.append(f'ejabberd uptime={self._metrics.get_uptime()}i {cur_ts}')
+ data.append(f'ejabberd processes={self._metrics.get_processes()}i {cur_ts}')
# vhost values
for vhost in self._metrics.get_vhosts():