prometheus.yml (952B)
1 # Prometheus configuration for the distributed observability stack 2 # 3 # Metrics arrive by OTLP push (services export to the /api/v1/otlp endpoint, 4 # enabled via the --web.enable-otlp-receiver flag in docker-compose.yml), 5 # so the only scrape job here is Prometheus scraping itself. 6 7 global: 8 scrape_interval: 15s 9 evaluation_interval: 15s 10 external_labels: 11 cluster: otelmart 12 environment: development 13 14 # OTLP receiver settings for pushed metrics 15 otlp: 16 # Keep OTel resource attributes as labels on the ingested series, 17 # so metrics can be filtered by service in Grafana. 18 promote_resource_attributes: 19 - service.name 20 - service.namespace 21 - service.version 22 - service.instance.id 23 - deployment.environment 24 25 storage: 26 tsdb: 27 # OTLP pushes can arrive slightly out of order across services. 28 out_of_order_time_window: 30m 29 30 scrape_configs: 31 - job_name: prometheus 32 static_configs: 33 - targets: ["localhost:9090"]