Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

76 lines
4.0 KiB

  1. ---
  2. # matrix-prometheus is an open-source systems monitoring and alerting toolkit
  3. # See: https://github.com/matrix-org/synapse/blob/master/docs/metrics-howto.md
  4. matrix_prometheus_enabled: false
  5. matrix_prometheus_version: v2.36.2
  6. matrix_prometheus_docker_image: "{{ matrix_container_global_registry_prefix }}prom/prometheus:{{ matrix_prometheus_version }}"
  7. matrix_prometheus_docker_image_force_pull: "{{ matrix_prometheus_docker_image.endswith(':latest') }}"
  8. matrix_prometheus_base_path: "{{ matrix_base_data_path }}/prometheus"
  9. matrix_prometheus_config_path: "{{ matrix_prometheus_base_path }}/config"
  10. matrix_prometheus_data_path: "{{ matrix_prometheus_base_path }}/data"
  11. # A list of extra arguments to pass to the container
  12. matrix_prometheus_container_extra_arguments: []
  13. # List of systemd services that matrix-prometheus.service depends on
  14. matrix_prometheus_systemd_required_services_list: ['docker.service']
  15. # List of systemd services that matrix-prometheus.service wants
  16. matrix_prometheus_systemd_wanted_services_list: []
  17. # Controls whether the matrix-prometheus container exposes its HTTP port (tcp/9090 in the container).
  18. #
  19. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9090"), or empty string to not expose.
  20. matrix_prometheus_container_http_host_bind_port: ''
  21. # A list of extra arguments to pass to the prometheus process
  22. matrix_prometheus_process_extra_arguments:
  23. - "--config.file=/etc/prometheus/prometheus.yml"
  24. - "--storage.tsdb.path=/prometheus"
  25. - "--web.console.libraries=/usr/share/prometheus/console_libraries"
  26. - "--web.console.templates=/usr/share/prometheus/consoles"
  27. # Tells whether the "synapse" scraper configuration is enabled.
  28. matrix_prometheus_scraper_synapse_enabled: false
  29. # Tells whether to download and load a Synapse rules file
  30. matrix_prometheus_scraper_synapse_rules_enabled: "{{ matrix_prometheus_scraper_synapse_enabled }}"
  31. matrix_prometheus_scraper_synapse_rules_synapse_tag: "master"
  32. matrix_prometheus_scraper_synapse_rules_download_url: "https://raw.githubusercontent.com/matrix-org/synapse/{{ matrix_prometheus_scraper_synapse_rules_synapse_tag }}/contrib/prometheus/synapse-v2.rules"
  33. matrix_prometheus_scraper_synapse_targets: []
  34. matrix_prometheus_scraper_synapse_workers_enabled_list: []
  35. # Tells whether the "node" scraper configuration is enabled.
  36. # This configuration aims to scrape the current node (this server).
  37. matrix_prometheus_scraper_node_enabled: false
  38. # Target addresses for the "node" scraper configuration.
  39. # Unless you define this as a non-empty list, it gets populated at runtime with the IP address of `matrix-prometheus-node-exporter` and port 9100.
  40. matrix_prometheus_scraper_node_targets: []
  41. # Default prometheus configuration template which covers the generic use case.
  42. # You can customize it by controlling the various variables inside it.
  43. #
  44. # For a more advanced customization, you can extend the default (see `matrix_prometheus_configuration_extension_yaml`)
  45. # or completely replace this variable with your own template.
  46. matrix_prometheus_configuration_yaml: "{{ lookup('template', 'templates/prometheus.yml.j2') }}"
  47. matrix_prometheus_configuration_extension_yaml: |
  48. # Your custom YAML configuration goes here.
  49. # This configuration extends the default starting configuration (`matrix_prometheus_configuration_yaml`).
  50. #
  51. # You can override individual variables from the default configuration, or introduce new ones.
  52. #
  53. # If you need something more special, you can take full control by
  54. # completely redefining `matrix_prometheus_configuration_yaml`.
  55. matrix_prometheus_configuration_extension: "{{ matrix_prometheus_configuration_extension_yaml|from_yaml if matrix_prometheus_configuration_extension_yaml|from_yaml is mapping else {} }}"
  56. # Holds the final configuration (a combination of the default and its extension).
  57. # You most likely don't need to touch this variable. Instead, see `matrix_prometheus_configuration_yaml`.
  58. matrix_prometheus_configuration: "{{ matrix_prometheus_configuration_yaml|from_yaml|combine(matrix_prometheus_configuration_extension, recursive=True) }}"