I tried to force the execution of collect-metrics but the hook returns “ERROR cannot record metric: metrics not allowed in this context”, any suggestion?
juju run -a testtimetwo-b-essence-ims-vdu-ab hooks/collect-metrics
I’m using this collect metrics in open source mano:
ERROR cannot record metric: metrics not allowed in this context
hooks/collect-metrics:65: YAMLLoadWarning: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
doc = yaml.load(f)
Traceback (most recent call last):
File “hooks/collect-metrics”, line 68, in
File “/usr/lib/python3.5/subprocess.py”, line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘add-metric’, ‘preregistered_users=0’, ‘users_in_dialog=0’, ‘users=5027’]’ returned non-zero exit status 1