# Prometheus scrape config for AgentHub's /api/metrics (see docs/MONITORING.md). # # As shipped it is the config docker-compose.monitoring.yml mounts: Prometheus # runs in a container and reaches the dashboard on the HOST through # host.docker.internal. For a Prometheus running natively on the same machine, # change the target to "127.0.0.1:4820". # # The dashboard's DNS-rebinding guard answers 403 EBADHOST to any Host header # that is not loopback, so a container scrape needs the dashboard started with # DASHBOARD_ALLOWED_HOSTS=host.docker.internal # and, when DASHBOARD_TOKEN is set, the authorization block below. global: scrape_interval: 15s scrape_timeout: 10s rule_files: - agenthub-rules.yml scrape_configs: - job_name: agenthub metrics_path: /api/metrics static_configs: - targets: ["host.docker.internal:4820"] # authorization: # type: Bearer # credentials_file: /etc/prometheus/dashboard-token