Add node_exporter to Hawthorn pro and Tahoe playbooks.
It configures it with the default setup on mongo servers. On the edxapp servers, it also enables the supervisord collector, since that runs on those servers.
If this were a "normal" ansible setup, I think we'd be able to have that configured per host-type with ansible's usual vars files setup. But in the open edx world, everything ends up in the one server-vars.yml file and I don't see an easier and cleaner way to have the different configurations.
Add
node_exporter
to Hawthorn pro and Tahoe playbooks.It configures it with the default setup on mongo servers. On the
edxapp
servers, it also enables thesupervisord
collector, since that runs on those servers.If anyone knows of a cleaner way to achieve that, I'm open to suggestions. As you can see here, on the
edxapp
hosts, it inlines a big block of configuration which is basically a copy of https://github.com/appsembler/roles/blob/develop/node_exporter/defaults/main.yml#L13-L19 but with the onesupervisord
entry added.If this were a "normal" ansible setup, I think we'd be able to have that configured per host-type with ansible's usual vars files setup. But in the open edx world, everything ends up in the one
server-vars.yml
file and I don't see an easier and cleaner way to have the different configurations.