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

91 строка
4.8 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. # Project source code URL: https://github.com/prometheus/prometheus
  5. matrix_prometheus_enabled: false
  6. matrix_prometheus_version: v2.42.0
  7. matrix_prometheus_docker_image: "{{ matrix_container_global_registry_prefix }}prom/prometheus:{{ matrix_prometheus_version }}"
  8. matrix_prometheus_docker_image_force_pull: "{{ matrix_prometheus_docker_image.endswith(':latest') }}"
  9. matrix_prometheus_base_path: "{{ matrix_base_data_path }}/prometheus"
  10. matrix_prometheus_config_path: "{{ matrix_prometheus_base_path }}/config"
  11. matrix_prometheus_data_path: "{{ matrix_prometheus_base_path }}/data"
  12. # A list of extra arguments to pass to the container
  13. matrix_prometheus_container_extra_arguments: []
  14. # List of systemd services that matrix-prometheus.service depends on
  15. matrix_prometheus_systemd_required_services_list: ['docker.service']
  16. # List of systemd services that matrix-prometheus.service wants
  17. matrix_prometheus_systemd_wanted_services_list: []
  18. # The base container network. It will be auto-created by this role if it doesn't exist already.
  19. matrix_prometheus_container_network: ''
  20. # A list of additional container networks that the container would be connected to.
  21. # The role does not create these networks, so make sure they already exist.
  22. # Use this to expose this container to another reverse proxy, which runs in a different container network.
  23. matrix_prometheus_container_additional_networks: []
  24. # Controls whether the matrix-prometheus container exposes its HTTP port (tcp/9090 in the container).
  25. #
  26. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9090"), or empty string to not expose.
  27. matrix_prometheus_container_http_host_bind_port: ''
  28. # A list of default arguments to pass to the prometheus process
  29. matrix_prometheus_process_default_arguments:
  30. - "--config.file=/etc/prometheus/prometheus.yml"
  31. - "--storage.tsdb.path=/prometheus"
  32. - "--web.console.libraries=/usr/share/prometheus/console_libraries"
  33. - "--web.console.templates=/usr/share/prometheus/consoles"
  34. # A list of extra arguments to pass to the prometheus process
  35. matrix_prometheus_process_extra_arguments: []
  36. # holds the final list of process arguments
  37. matrix_prometheus_process_arguments: "{{ matrix_prometheus_process_default_arguments + matrix_prometheus_process_extra_arguments }}"
  38. # Tells whether the "synapse" scraper configuration is enabled.
  39. matrix_prometheus_scraper_synapse_enabled: false
  40. # Tells whether to download and load a Synapse rules file
  41. matrix_prometheus_scraper_synapse_rules_enabled: "{{ matrix_prometheus_scraper_synapse_enabled }}"
  42. matrix_prometheus_scraper_synapse_rules_synapse_tag: "master"
  43. 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"
  44. matrix_prometheus_scraper_synapse_targets: []
  45. matrix_prometheus_scraper_synapse_workers_enabled_list: []
  46. # Tells whether the "node" scraper configuration is enabled.
  47. # This configuration aims to scrape the current node (this server).
  48. matrix_prometheus_scraper_node_enabled: false
  49. # Target addresses for the "node" scraper configuration.
  50. # 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.
  51. matrix_prometheus_scraper_node_targets: []
  52. # Default prometheus configuration template which covers the generic use case.
  53. # You can customize it by controlling the various variables inside it.
  54. #
  55. # For a more advanced customization, you can extend the default (see `matrix_prometheus_configuration_extension_yaml`)
  56. # or completely replace this variable with your own template.
  57. matrix_prometheus_configuration_yaml: "{{ lookup('template', 'templates/prometheus.yml.j2') }}"
  58. matrix_prometheus_configuration_extension_yaml: |
  59. # Your custom YAML configuration goes here.
  60. # This configuration extends the default starting configuration (`matrix_prometheus_configuration_yaml`).
  61. #
  62. # You can override individual variables from the default configuration, or introduce new ones.
  63. #
  64. # If you need something more special, you can take full control by
  65. # completely redefining `matrix_prometheus_configuration_yaml`.
  66. matrix_prometheus_configuration_extension: "{{ matrix_prometheus_configuration_extension_yaml | from_yaml if matrix_prometheus_configuration_extension_yaml | from_yaml is mapping else {} }}"
  67. # Holds the final configuration (a combination of the default and its extension).
  68. # You most likely don't need to touch this variable. Instead, see `matrix_prometheus_configuration_yaml`.
  69. matrix_prometheus_configuration: "{{ matrix_prometheus_configuration_yaml | from_yaml | combine(matrix_prometheus_configuration_extension, recursive=True) }}"