Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 

50 строки
1.5 KiB

  1. {#
  2. SPDX-FileCopyrightText: 2021 MDAD project contributors
  3. SPDX-FileCopyrightText: 2022 - 2024 Slavi Pantaleev
  4. SPDX-FileCopyrightText: 2022 Kim Brose
  5. SPDX-License-Identifier: AGPL-3.0-or-later
  6. #}
  7. global:
  8. scrape_interval: 5s
  9. # Attach these labels to any time series or alerts when communicating with
  10. # external systems (federation, remote storage, Alertmanager).
  11. external_labels:
  12. monitor: 'synapse-{{ matrix_domain }}'
  13. rule_files:
  14. - /etc/prometheus/synapse-v2.rules
  15. scrape_configs:
  16. - job_name: 'synapse'
  17. metrics_path: /metrics/synapse/main-process
  18. scheme: https
  19. {% if matrix_synapse_container_labels_public_metrics_middleware_basic_auth_enabled|default(true) %}
  20. basic_auth:
  21. username: prometheus
  22. password_file: /path/to/your/passwordfile.pwd
  23. {% endif %}
  24. static_configs:
  25. - targets: ['{{ matrix_synapse_metrics_proxying_hostname }}:443']
  26. labels:
  27. job: "master"
  28. index: "0"
  29. {% for worker in matrix_synapse_workers_enabled_list %}
  30. - job_name: '{{ worker.name }}'
  31. metrics_path: /metrics/synapse/worker/{{ worker.id }}
  32. scheme: https
  33. {% if matrix_synapse_worker_container_labels_public_metrics_middleware_basic_auth_enabled|default(true) %}
  34. basic_auth:
  35. username: prometheus
  36. password_file: /path/to/your/passwordfile.pwd
  37. {% endif %}
  38. static_configs:
  39. - targets: ['{{ matrix_synapse_metrics_proxying_hostname }}:443']
  40. labels:
  41. worker_id: {{ worker.id }}
  42. job: "{{ worker.type }}"
  43. app: {{ worker.app }}
  44. {% endfor %}