# Gitea — Go runtime + application metrics. # Scraped via internal container port to bypass nginx/OAuth2 proxy. # Requires GITEA__metrics__ENABLED=true (set conditionally in env.j2 when enabled). - job_name: "gitea" scheme: http metrics_path: /metrics {% set _token = lookup('config', native_prometheus_application_id, 'secrets.credentials.native_metrics_token', '') %} {% if _token %} bearer_token: "{{ _token }}" {% endif %} static_configs: - targets: ["{{ lookup('native_metrics_target', native_prometheus_application_id) }}"] labels: app: "{{ native_prometheus_application_id }}"