Altalogy / tari

The Tari protocol
https://tari.com
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

feat: change logging backend to grafana pt i #274

Closed CjS77 closed 2 years ago

CjS77 commented 2 years ago

This brings in most of the changes required to replace frontail with grafana as the logging platform.

Note: The logging is not yet fully functional. There is still some configuration to finish up, mounting of config files, and tying into the front-end.

This PR adds the ImageType definitions for Loki, Promtail and grafana.

The configuration files for grafana are included in the launchpad assets folder. These will be mounted so that the containers can access them, but will be in the host file system so that advanced users can tweak things.

I've also tidied up the mount definitions to allow arbitrary mount bindings, which grafana is going to need (coming soon).

The front-end should be updated to derive the image list using the image_list command rather than hard-coding the list, so that these changes can be picked up. The FE still reports fronttail.

Builds a lightweight builder pattern to provide the blockchain and /var/tari mount points, as well as a way to easily mount arbitrary folders on the host, akin to -v /my/path:/your/path.

CjS77 commented 2 years ago

Tidying up code, and will resubmit