Automaticly sets up the NIXStats agent on Trellis servers
Add this role to galaxy.yml:
- src: xilonz.trellis_nixstats # Case-sensitive!
version: 0.2.0 # Check for latest version!
Run $ ansible-galaxy install -r galaxy.yml
to install this new role.
# group_vars/<environment>/main.yml
###################################
nixstats_user_id: '' #(required)
nixstats_server_id: '' #(required)
nixstats_database_name: 'performance_schema' #(optional)
nixstats_database_enabled: true #(optional)
nixstats_nginx_enabled: true #(optional)
nixstats_phpfpm_enabled: true #(optional)
Add this role to server.yml
after the last role:
roles:
# All other Trellis roles ...
- { role: wordpress-setup, tags: [wordpress, wordpress-setup, letsencrypt] }
- { role: xilonz.trellis-nixstats, tags: [nixstats]}
- None
Pull requests are welcomed.
- A smarter way to get the database name of the first site, and/or a way to monitor all databases.
Trellis NIXStats Agent is a Steenbergen Design project and maintained by Arjan Steenbergen
Special thanks to the Roots team whose Trellis make this project possible.
You can help me by signing up to Nixstats using my affiliate link
Please see CODE_OF_CONDUCT for details.
Trellis NIXStats Agent is released under the MIT License.