Fix metrics exporting
Metrics got broken when counters were moved to be initialized below the monitor creation
This commit is contained in:
parent
c7081a0d32
commit
30a55b4ab2
@ -416,13 +416,14 @@ class Minitor(object):
|
|||||||
def run(self, args=None):
|
def run(self, args=None):
|
||||||
"""Runs Minitor in a loop"""
|
"""Runs Minitor in a loop"""
|
||||||
args = self._parse_args(args)
|
args = self._parse_args(args)
|
||||||
self._setup(args.config_path)
|
|
||||||
self._validate_monitors()
|
|
||||||
|
|
||||||
if args.metrics:
|
if args.metrics:
|
||||||
self._init_metrics()
|
self._init_metrics()
|
||||||
start_http_server(args.metrics_port)
|
start_http_server(args.metrics_port)
|
||||||
|
|
||||||
|
self._setup(args.config_path)
|
||||||
|
self._validate_monitors()
|
||||||
|
|
||||||
self._loop()
|
self._loop()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user