config.yaml 764 B

12345678910111213141516171819202122
  1. prometheus:
  2. prometheus/customname:
  3. trim_metric_suffixes: true
  4. use_start_time_metric: true
  5. start_time_metric_regex: '^(.+_)*process_start_time_seconds$'
  6. report_extra_scrape_metrics: true
  7. enable_protobuf_negotiation: true
  8. target_allocator:
  9. endpoint: http://my-targetallocator-service
  10. interval: 30s
  11. collector_id: collector-1
  12. # imported struct from the Prometheus code base. Can be used optionally to configure the jobs as seen in the docs
  13. # https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_sd_config
  14. http_sd_config:
  15. refresh_interval: 60s
  16. basic_auth:
  17. username: prometheus
  18. password: changeme
  19. config:
  20. scrape_configs:
  21. - job_name: 'demo'
  22. scrape_interval: 5s