# Prometheus scrape configuration for MeshCore Hub # # Example configuration — copy and adapt for your Prometheus deployment. # Point your scraper at the MeshCore Hub API /metrics endpoint: # http://api:8000/metrics # # The scrape interval matches the default metrics cache TTL (60s) # to avoid unnecessary database queries. global: scrape_interval: 60s evaluation_interval: 60s alerting: alertmanagers: - static_configs: - targets: ['alertmanager:9093'] rule_files: - 'alerts.yml' scrape_configs: - job_name: 'meshcore-hub' metrics_path: '/metrics' # Uncomment basic_auth if API_READ_KEY is configured # basic_auth: # username: 'metrics' # password: '' static_configs: - targets: ['api:8000']