@@ -20,11 +20,11 @@ class TinyproxyCollector(object):
20
20
urllib .request .install_opener (opener )
21
21
response = urllib .request .urlopen ('http://{0}' .format (self .stathost ))
22
22
values = [float (x ) for x in re .findall (b'>(\d+).+td' , response .read ())]
23
- yield GaugeMetricFamily ('tinyproxy_open_connections ' , 'Number of open connections' , values [0 ])
24
- yield CounterMetricFamily ('tinyproxy_requests ' , 'Number of requests' , values [1 ])
25
- yield CounterMetricFamily ('tinyproxy_bad_connections ' , 'Number of bad connections' , values [2 ])
26
- yield CounterMetricFamily ('tinyproxy_denied_connections ' , 'Number of denied connections' , values [3 ])
27
- yield CounterMetricFamily ('tinyproxy_refused_connections ' , 'Number of refused connections due to high load' , values [4 ])
23
+ yield GaugeMetricFamily ('tinyproxy_connections_open ' , 'Number of open connections' , values [0 ])
24
+ yield CounterMetricFamily ('tinyproxy_requests_total ' , 'Number of requests' , values [1 ])
25
+ yield CounterMetricFamily ('tinyproxy_connections_bad_total ' , 'Number of bad connections' , values [2 ])
26
+ yield CounterMetricFamily ('tinyproxy_connections_denied_total ' , 'Number of denied connections' , values [3 ])
27
+ yield CounterMetricFamily ('tinyproxy_connections_refused_total ' , 'Number of refused connections due to high load' , values [4 ])
28
28
29
29
def parse_args ():
30
30
parser = argparse .ArgumentParser (description = 'Prometheus exporter for Tinyproxy.' )
0 commit comments