# Prometheus scrape job for Gitea. Gathered into
# prometheus/scrape.d/gitea.yml by monitoringRefreshPrometheus when
# CFG_GITEA_MONITORING=true. Gitea's /metrics rides the main HTTP port (3000),
# which is the public web port — so it's locked behind a bearer token.
# The compose fills GITEA__metrics__TOKEN via the framework's RANDOMIZEDPASSWORD
# mechanism; gitea.sh mirrors that generated value into this fragment so the
# two always match.
- job_name: gitea
  metrics_path: /metrics
  authorization:
    credentials: GITEA_METRICS_TOKEN_PLACEHOLDER
  static_configs:
    - targets: ['gitea-service:3000']
