trellis_nixstats

NIXStats agent role for Trellis

Automaticly sets up the NIXStats agent on Trellis servers

Requirements

Installation

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.

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)

Hacking Trellis' Playbook

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]}

Limitations and known issues

  • None

Pull requests are welcomed.

See Also

Help needed

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

Author Information

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

Contributing

Please see CODE_OF_CONDUCT for details.

License

Trellis NIXStats Agent is released under the MIT License.

About

Install NIXStats Agent on Trellis servers

Install
ansible-galaxy install Xilonz/trellis-nixstats
GitHub repository
License
mit
Downloads
113