Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

66 líneas
2.2 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. labels:
  29. instance: {{ matrix_domain }}
  30. job: master
  31. index: 0
  32. {% for worker in matrix_prometheus_scraper_synapse_workers_enabled_list %}
  33. {% if worker.metrics_port != 0 %}
  34. - targets: ['matrix-synapse-worker-{{ worker.type }}-{{ worker.instanceId }}:{{ worker.metrics_port }}']
  35. labels:
  36. instance: {{ matrix_domain }}
  37. job: {{ worker.type }}
  38. index: {{ worker.instanceId }}
  39. {% endif %}
  40. {% endfor %}
  41. {% endif %}
  42. {% if matrix_prometheus_scraper_node_enabled %}
  43. - job_name: node
  44. static_configs:
  45. - targets: {{ matrix_prometheus_scraper_node_targets|to_json }}
  46. {% endif %}
  47. {% if matrix_prometheus_scraper_postgres_enabled %}
  48. - job_name: postgres
  49. static_configs:
  50. - targets: {{ matrix_prometheus_scraper_postgres_targets|to_json }}
  51. {% endif %}
  52. {% if matrix_prometheus_scraper_hookshot_enabled %}
  53. - job_name: hookshot
  54. static_configs:
  55. - targets: {{ matrix_prometheus_scraper_hookshot_targets|to_json }}
  56. {% endif %}