Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Lunny Xiao 476b9d1589
Use docs.gitea.com instead of docs.gitea.io (#26739)
il y a 9 mois
..
dashboards Fixed lint warnings in Grafana raised by Mixtool (#22486) il y a 1 an
lib Add grafana gitea-mixin (#17758) il y a 2 ans
.gitignore Add grafana gitea-mixin (#17758) il y a 2 ans
Makefile Add grafana gitea-mixin (#17758) il y a 2 ans
README.md Add grafana gitea-mixin (#17758) il y a 2 ans
config.libsonnet Use docs.gitea.com instead of docs.gitea.io (#26739) il y a 9 mois
jsonnetfile.json Add grafana gitea-mixin (#17758) il y a 2 ans
jsonnetfile.lock.json Add grafana gitea-mixin (#17758) il y a 2 ans
mixin.libsonnet Add grafana gitea-mixin (#17758) il y a 2 ans

README.md

Gitea Mixin

Gitea Mixin is a set of configurable Grafana dashboards based on the metrics exported by the Gitea built-in metrics endpoint.

Generate config files

You can manually generate dashboards, but first you should install some tools:

go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
go install github.com/google/go-jsonnet/cmd/jsonnet@latest
# or in brew: brew install go-jsonnet

For linting and formatting, you would also need mixtool and jsonnetfmt installed. If you have a working Go development environment, it’s easiest to run the following:

go install github.com/monitoring-mixins/mixtool/cmd/mixtool@latest
go install github.com/google/go-jsonnet/cmd/jsonnetfmt@latest

The files in dashboards_out need to be imported into your Grafana server. The exact details will be depending on your environment.

Edit config.libsonnet if required and then build JSON dashboard files for Grafana:

make

For more advanced uses of mixins, see https://github.com/monitoring-mixins/docs.