Menu
Grafana Cloud

Gitea integration for Grafana Cloud

Gitea is an open-source forge software package for hosting software development version control using Git as well as other collaborative features like bug tracking, wikis and code review. This integration provides the dashboard with metrics exposed by Gitea, including application’s key stats as well as CPU, memory, file descriptors utilization.

Pre-install configuration for the Gitea integration

In order for the integration to work, on Gitea instance you need to configure metrics section to enable /metrics endpoint:

[metrics]
ENABLED=true

In order to see issues stats grouped by repositores and labels, Gitea 1.16.0 or above is required with the following flags set:

[metrics]
ENABLED=true
ENABLED_ISSUE_BY_REPOSITORY=true
ENABLED_ISSUE_BY_LABEL=true

Post-install configuration for the Gitea integration

In the configuration file, the Grafana agent must be pointed to a server, such as gitea:3000 in the example below, that exposes a /metrics endpoint.

metrics:
  wal_directory: /tmp/wal
  configs:
    - name: integrations
      scrape_configs:
        - job_name: integrations/gitea
          static_configs:
            - targets: ['gitea:3000']
      remote_write:
        - url: http://cortex:9009/api/prom/push