Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

41 lignes
1.7 KiB

  1. global:
  2. scrape_interval: 5s
  3. # Attach these labels to any time series or alerts when communicating with
  4. # external systems (federation, remote storage, Alertmanager).
  5. external_labels:
  6. monitor: 'synapse-{{ matrix_domain }}'
  7. rule_files:
  8. - /etc/prometheus/synapse-v2.rules
  9. scrape_configs:
  10. - job_name: 'synapse'
  11. metrics_path: /_synapse/metrics
  12. scheme: {{ 'https' if matrix_nginx_proxy_https_enabled else 'http' }}
  13. {% if matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled %}
  14. basic_auth:
  15. username: prometheus
  16. password_file: /path/to/your/passwordfile.pwd
  17. {% endif %}
  18. static_configs:
  19. - targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_http_host_bind_port }}']
  20. labels:
  21. job: "master"
  22. index: "0"
  23. {% for worker in matrix_nginx_proxy_proxy_synapse_workers_enabled_list %}
  24. - job_name: 'synapse-{{ worker.type }}-{{ worker.instanceId }}'
  25. metrics_path: /_synapse-worker-{{ worker.type }}-{{ worker.instanceId }}/metrics
  26. scheme: {{ 'https' if matrix_nginx_proxy_https_enabled else 'http' }}
  27. {% if matrix_nginx_proxy_proxy_synapse_metrics_basic_auth_enabled %}
  28. basic_auth:
  29. username: prometheus
  30. password_file: /path/to/your/passwordfile.pwd
  31. {% endif %}
  32. static_configs:
  33. - targets: ['{{ matrix_server_fqn_matrix }}:{{ matrix_nginx_proxy_container_https_host_bind_port if matrix_nginx_proxy_https_enabled else matrix_nginx_proxy_container_http_host_bind_port }}']
  34. labels:
  35. job: "{{ worker.type }}"
  36. index: "{{ worker.instanceId }}"
  37. {% endfor %}