prometheus.yml 816 B

1234567891011121314151617181920212223
  1. global:
  2. scrape_interval: 1s # By default, scrape targets every 15 seconds.
  3. # Attach these labels to any time series or alerts when communicating with
  4. # external systems (federation, remote storage, Alertmanager).
  5. external_labels:
  6. stack: "apisix"
  7. # A scrape configuration containing exactly one endpoint to scrape:
  8. # Here it's Prometheus itself.
  9. scrape_configs:
  10. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  11. - job_name: "prometheus"
  12. # Override the global default and scrape targets from this job every 5 seconds.
  13. scrape_interval: 5s
  14. static_configs:
  15. - targets: ["localhost:9090"]
  16. - job_name: "apisix"
  17. scrape_interval: 5s
  18. metrics_path: "/apisix/prometheus/metrics"
  19. static_configs:
  20. - targets: ["apisix:9091"]