We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ac7def + 55c247b commit 359f107Copy full SHA for 359f107
tinyproxy_exporter
@@ -19,7 +19,7 @@ class TinyproxyCollector(object):
19
opener = urllib.request.build_opener(handler)
20
urllib.request.install_opener(opener)
21
response = urllib.request.urlopen('http://{0}'.format(self.stathost))
22
- values = [float(x) for x in re.findall(b'>(\d+).+td', response.read())]
+ values = [float(x) for x in re.findall(b': (\d+)', response.read())]
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])
0 commit comments