code.gitea.io/gitea@v1.22.3/contrib/gitea-monitoring-mixin/README.md (about) 1 # Gitea Mixin 2 3 Gitea Mixin is a set of configurable Grafana dashboards based on the metrics exported by the Gitea built-in metrics endpoint. 4 5 ## Generate config files 6 7 You can manually generate dashboards, but first you should install some tools: 8 9 ```bash 10 go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest 11 go install github.com/google/go-jsonnet/cmd/jsonnet@latest 12 # or in brew: brew install go-jsonnet 13 ``` 14 15 For linting and formatting, you would also need `mixtool` and `jsonnetfmt` installed. If you 16 have a working Go development environment, it's easiest to run the following: 17 18 ```bash 19 go install github.com/monitoring-mixins/mixtool/cmd/mixtool@latest 20 go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest 21 ``` 22 23 The files in `dashboards_out` need to be imported 24 into your Grafana server. The exact details will be depending on your environment. 25 26 Edit `config.libsonnet` if required and then build JSON dashboard files for Grafana: 27 28 ```bash 29 make 30 ``` 31 32 For more advanced uses of mixins, see 33 https://github.com/monitoring-mixins/docs.