add new values to influx

+ add uptime and process values to influx exporter
This commit is contained in:
nico 2020-06-26 01:00:39 +02:00
parent 907d3bdb61
commit bbf156057f
Signed by: mightyBroccoli
GPG Key ID: EA7C31AAB1BDC1A2
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class Influx:
cur_ts = self._timestamp() cur_ts = self._timestamp()
data.append(f'ejabberd s2s_in={self._metrics.get_s2s_in()}i {cur_ts}') 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 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 # vhost values
for vhost in self._metrics.get_vhosts(): for vhost in self._metrics.get_vhosts():