Matrix Docker Ansible eploy
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

42 linhas
1.3 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
  13. {% if matrix_synapse_container_labels_public_metrics_middleware_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_synapse_metrics_proxying_hostname }}:443']
  20. labels:
  21. job: "master"
  22. index: "0"
  23. {% for worker in matrix_synapse_workers_enabled_list %}
  24. - job_name: '{{ worker.name }}'
  25. metrics_path: /metrics/synapse/worker/{{ worker.id }}
  26. scheme: https
  27. {% if matrix_synapse_worker_container_labels_metrics_middleware_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_synapse_metrics_proxying_hostname }}:443']
  34. labels:
  35. worker_id: {{ worker.id }}
  36. job: "{{ worker.type }}"
  37. app: {{ worker.app }}
  38. {% endfor %}