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

48 строки
1.4 KiB

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