github.com/polarismesh/polaris@v1.17.8/release/standalone/docker-compose/prometheus/prometheus.yml (about) 1 # my global config 2 global: 3 scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. 4 evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. 5 # scrape_timeout is set to the global default (10s). 6 7 8 # A scrape configuration containing exactly one endpoint to scrape: 9 # Here it's Prometheus itself. 10 scrape_configs: 11 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. 12 - job_name: "prometheus" 13 static_configs: 14 - targets: [ "localhost:9090" ] 15 - job_name: "push-metrics" 16 static_configs: 17 - targets: [ "polaris-pushgateway:9091" ] 18 - job_name: "polaris-server" 19 http_sd_configs: 20 - url: "http://polaris-server:8090/prometheus/v1/clients"