xilonz.trellis_nixstats

NIXStats Agent Role for Trellis

Automatically sets up the NIXStats agent on Trellis servers.

Requirements

Installation

Add this role to galaxy.yml like this:

- src: xilonz.trellis_nixstats # Remember that it is case-sensitive!
  version: 0.2.0 # Make sure to check for the latest version!

Run $ ansible-galaxy install -r galaxy.yml to install the new role.

Role Variables

# 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)

Updating Trellis' Playbook

Add this role to server.yml after all other roles:

roles:
    # All other Trellis roles ...
    - { role: wordpress-setup, tags: [wordpress, wordpress-setup, letsencrypt] }
    - { role: xilonz.trellis-nixstats, tags: [nixstats]}

Limitations and Known Issues

  • None

Pull requests are welcome.

See Also

Help Needed

  • A better way to get the database name of the first site, or a way to monitor all databases.

Author Information

The Trellis NIXStats Agent is a project by Steenbergen Design and maintained by Arjan Steenbergen.

Special thanks to the Roots team for making this project possible with their Trellis.

You can support me by signing up for NIXStats using my affiliate link.

Contributing

Please check the CODE_OF_CONDUCT for details.

License

The Trellis NIXStats Agent is licensed under the MIT License.

Informazioni sul progetto

Install NIXStats Agent on Trellis servers

Installa
ansible-galaxy install xilonz.trellis_nixstats
Licenza
mit
Download
127
Proprietario