Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

41 lines
1.4 KiB

  1. #jinja2: lstrip_blocks: "True"
  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. # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
  7. rule_files:
  8. {% if matrix_prometheus_scraper_synapse_rules_enabled %}
  9. - 'synapse-v2.rules'
  10. {% endif %}
  11. # A scrape configuration containing exactly one endpoint to scrape:
  12. # Here it's Prometheus itself.
  13. scrape_configs:
  14. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  15. - job_name: 'prometheus'
  16. # Override the global default and scrape targets from this job every 5 seconds.
  17. scrape_interval: 5s
  18. scrape_timeout: 5s
  19. # metrics_path defaults to '/metrics'
  20. # scheme defaults to 'http'.
  21. static_configs:
  22. - targets: ['localhost:9090']
  23. {% if matrix_prometheus_scraper_synapse_enabled %}
  24. - job_name: 'synapse'
  25. metrics_path: '/_synapse/metrics'
  26. static_configs:
  27. - targets: {{ matrix_prometheus_scraper_synapse_targets|to_json }}
  28. {% endif %}
  29. {% if matrix_prometheus_scraper_node_enabled %}
  30. - job_name: node
  31. static_configs:
  32. - targets: {{ matrix_prometheus_scraper_node_targets|to_json }}
  33. {% endif %}