appsembler / configuration

a simple, but flexible, way for anyone to stand up an instance of the edX platform that is fully configured and ready-to-go
GNU Affero General Public License v3.0
15 stars 13 forks source link

Add node exporter #302

Closed thraxil closed 4 years ago

thraxil commented 4 years ago

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 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 one supervisord 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.