Actions
Architecture #25869
openmetrics survey are never sent because technique wants yes and get complete
Pull Request:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No
Description
The survey script is managed :
- in the webapp by the settings that is a tri-state: no, minimal, complete
- in the cfengine file: /var/rudder/config-repo/techniques/system/rudder-service-webapp/1.0/metrics-reporting.cf
This file seems to expect "yes", which never happens:
"accept_metrics" expression => strcmp("${server_roles_common.send_metrics}", "yes"); "run_metrics" expression => "accept_metrics";
It should be "not no".
I tested to change it to:
"accept_metrics" not => strcmp("${server_roles_common.send_metrics}", "no"); "run_metrics" expression => "accept_metrics";
But the file is still not send:
rudder agent run:
... E| n/a Rudder Webapp Send metrics to rudder-p| Sending metrics to rudder-project.org is not enabled. Skipping.
[root@server configuration-repository]# grep -i "send_metrics" /var/rudder/cfengine-community/inputs/* /var/rudder/cfengine-community/inputs/rudder.json: "SEND_METRICS":"complete",
Actions