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.
 
 

41 líneas
1.8 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: /metrics/synapse/main-process
  12. scheme: {{ 'https' if matrix_nginx_proxy_https_enabled|default(true) else 'http' }}
  13. {% if matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_enabled|default(true) %}
  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|default(443) if matrix_nginx_proxy_https_enabled|default(true) else matrix_nginx_proxy_container_http_host_bind_port|default(80) }}']
  20. labels:
  21. job: "master"
  22. index: "0"
  23. {% for worker in matrix_synapse_workers_enabled_list %}
  24. - job_name: 'synapse-{{ worker.type }}-{{ worker.instanceId }}'
  25. metrics_path: /metrics/synapse/worker/{{ worker.type }}-{{ worker.instanceId }}
  26. scheme: {{ 'https' if matrix_nginx_proxy_https_enabled|default(true) else 'http' }}
  27. {% if matrix_nginx_proxy_proxy_matrix_metrics_basic_auth_enabled|default(true) %}
  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|default(443) if matrix_nginx_proxy_https_enabled|default(true) else matrix_nginx_proxy_container_http_host_bind_port|default(80) }}']
  34. labels:
  35. job: "{{ worker.type }}"
  36. index: "{{ worker.instanceId }}"
  37. {% endfor %}