forgejo_fusion/contrib/gitea-monitoring-mixin
David Rotermund 49fe13eb4a
Some checks are pending
Integration tests for the release process / release-simulation (push) Waiting to run
10.0.0 base
2025-02-08 23:21:02 +01:00
..
dashboards 10.0.0 base 2025-02-08 23:21:02 +01:00
lib 10.0.0 base 2025-02-08 23:21:02 +01:00
.gitignore 10.0.0 base 2025-02-08 23:21:02 +01:00
config.libsonnet 10.0.0 base 2025-02-08 23:21:02 +01:00
jsonnetfile.json 10.0.0 base 2025-02-08 23:21:02 +01:00
jsonnetfile.lock.json 10.0.0 base 2025-02-08 23:21:02 +01:00
Makefile 10.0.0 base 2025-02-08 23:21:02 +01:00
mixin.libsonnet 10.0.0 base 2025-02-08 23:21:02 +01:00
README.md 10.0.0 base 2025-02-08 23:21:02 +01:00

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.