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

108 строки
7.1 KiB

  1. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev
  3. # SPDX-FileCopyrightText: 2023 Samuel Meenzen
  4. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  5. #
  6. # SPDX-License-Identifier: AGPL-3.0-or-later
  7. ---
  8. # prometheus-nginxlog-exporter exports nginx logs in a prometheus usable format on a `/metrics/ endpoint
  9. # See: https://github.com/martin-helmich/prometheus-nginxlog-exporter/
  10. prometheus_nginxlog_exporter_enabled: true
  11. prometheus_nginxlog_exporter_identifier: ''
  12. # You don't need to configure a hostname and path prefix if you're not exposing this.
  13. prometheus_nginxlog_exporter_hostname: ''
  14. prometheus_nginxlog_exporter_path_prefix: "/metrics/nginxlog"
  15. # renovate: datasource=docker depName=ghcr.io/martin-helmich/prometheus-nginxlog-exporter/exporter
  16. prometheus_nginxlog_exporter_version: v1.10.0
  17. prometheus_nginxlog_exporter_container_metrics_port: '4040'
  18. prometheus_nginxlog_exporter_container_syslog_port: '6514'
  19. prometheus_nginxlog_exporter_container_image_arch: ['amd64', 'arm64']
  20. prometheus_nginxlog_exporter_container_image: "{{ prometheus_nginxlog_exporter_container_image_registry_prefix }}martin-helmich/prometheus-nginxlog-exporter/exporter:{{ prometheus_nginxlog_exporter_container_image_tag }}"
  21. prometheus_nginxlog_exporter_container_image_registry_prefix: "{{ prometheus_nginxlog_exporter_container_image_registry_prefix_upstream }}"
  22. prometheus_nginxlog_exporter_container_image_registry_prefix_upstream_default: "ghcr.io/"
  23. prometheus_nginxlog_exporter_container_image_tag: "{{ 'latest' if prometheus_nginxlog_exporter_version == 'master' else prometheus_nginxlog_exporter_version }}-{{ matrix_architecture }}"
  24. prometheus_nginxlog_exporter_container_image_force_pull: "{{ prometheus_nginxlog_exporter_container_image.endswith(':latest') }}"
  25. prometheus_nginxlog_exporter_container_image_arch_check_enabled: true
  26. # prometheus_nginxlog_exporter_dashboard_urls contains a list of URLs with Grafana dashboard definitions.
  27. # If the Grafana role is enabled, these dashboards will be downloaded.
  28. prometheus_nginxlog_exporter_dashboard_urls: []
  29. prometheus_nginxlog_exporter_config_path: "{{ prometheus_nginxlog_exporter_base_path }}/config"
  30. prometheus_nginxlog_exporter_container_network: "{{ prometheus_nginxlog_exporter_identifier }}"
  31. prometheus_nginxlog_exporter_container_additional_networks: "{{ prometheus_nginxlog_exporter_container_additional_networks_auto + prometheus_nginxlog_exporter_container_additional_networks_custom }}"
  32. prometheus_nginxlog_exporter_container_additional_networks_auto: []
  33. prometheus_nginxlog_exporter_container_additional_networks_custom: []
  34. # prometheus_nginxlog_exporter_container_labels_traefik_enabled controls whether labels to assist a Traefik reverse-proxy will be attached to the container.
  35. # See `../templates/labels.j2` for details.
  36. #
  37. # To inject your own other container labels, see `prometheus_nginxlog_exporter_container_labels_additional_labels`.
  38. prometheus_nginxlog_exporter_container_labels_traefik_enabled: "{{ true if prometheus_nginxlog_exporter_hostname else false }}"
  39. prometheus_nginxlog_exporter_container_labels_traefik_docker_network: "{{ prometheus_nginxlog_exporter_container_network }}"
  40. prometheus_nginxlog_exporter_container_labels_traefik_hostname: "{{ prometheus_nginxlog_exporter_hostname }}"
  41. # The path prefix must either be `/` or not end with a slash (e.g. `/metrics`).
  42. prometheus_nginxlog_exporter_container_labels_traefik_path_prefix: "{{ prometheus_nginxlog_exporter_path_prefix }}"
  43. prometheus_nginxlog_exporter_container_labels_traefik_rule: "Host(`{{ prometheus_nginxlog_exporter_container_labels_traefik_hostname }}`) && PathPrefix(`{{ prometheus_nginxlog_exporter_container_labels_traefik_path_prefix }}`)"
  44. prometheus_nginxlog_exporter_container_labels_traefik_entrypoints: web-secure
  45. prometheus_nginxlog_exporter_container_labels_traefik_tls: "{{ prometheus_nginxlog_exporter_container_labels_traefik_entrypoints != 'web' }}"
  46. prometheus_nginxlog_exporter_container_labels_traefik_tls_certResolver: default # noqa var-naming
  47. prometheus_nginxlog_exporter_container_labels_metrics_middleware_basic_auth_enabled: false
  48. # See: https://doc.traefik.io/traefik/middlewares/http/basicauth/#users
  49. prometheus_nginxlog_exporter_container_labels_metrics_middleware_basic_auth_users: ''
  50. # prometheus_nginxlog_exporter_container_labels_additional_labels contains a multiline string with additional labels to add to the container label file.
  51. # See `../templates/labels.j2` for details.
  52. #
  53. # Example:
  54. # prometheus_nginxlog_exporter_container_labels_additional_labels: |
  55. # my.label=1
  56. # another.label="here"
  57. prometheus_nginxlog_exporter_container_labels_additional_labels: ''
  58. # A list of extra docker arguments to pass to the container
  59. prometheus_nginxlog_exporter_container_extra_arguments: []
  60. # List of systemd services that matrix-prometheus_nginxlog_exporter.service depends on
  61. prometheus_nginxlog_exporter_systemd_required_services_list: "{{ prometheus_nginxlog_exporter_systemd_required_services_list_default + prometheus_nginxlog_exporter_systemd_required_services_list_auto + prometheus_nginxlog_exporter_systemd_required_services_list_custom }}"
  62. prometheus_nginxlog_exporter_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  63. prometheus_nginxlog_exporter_systemd_required_services_list_auto: []
  64. prometheus_nginxlog_exporter_systemd_required_services_list_custom: []
  65. # List of systemd services that matrix-prometheus_nginxlog_exporter.service wants
  66. prometheus_nginxlog_exporter_systemd_wanted_services_list: []
  67. # Controls whether the matrix-prometheus_nginxlog_exporter container exposes its HTTP port (tcp/4040 in the container).
  68. #
  69. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:4040"), or empty string to not expose.
  70. prometheus_nginxlog_exporter_container_http_host_bind_port: ''
  71. # Controls whether the matrix-prometheus_nginxlog_exporter container exposes its SYSLOG port (udp/6514 in the container).
  72. #
  73. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:6514"), or empty string to not expose.
  74. # Note: is an UDP connection!
  75. prometheus_nginxlog_exporter_container_syslog_host_bind_port: ''
  76. prometheus_nginxlog_exporter_config_namespaces_matrix_source_tags: "{{ prometheus_nginxlog_exporter_config_namespaces_matrix_source_tags_auto + prometheus_nginxlog_exporter_config_namespaces_matrix_source_tags_custom }}"
  77. prometheus_nginxlog_exporter_config_namespaces_matrix_source_tags_auto: []
  78. prometheus_nginxlog_exporter_config_namespaces_matrix_source_tags_custom: []
  79. # prometheus_nginxlog_exporter_restart_necessary controls whether the service
  80. # will be restarted (when true) or merely started (when false) by the
  81. # systemd service manager role (when conditional restart is enabled).
  82. #
  83. # This value is automatically computed during installation based on whether
  84. # any configuration files, the systemd service file, or the container image changed.
  85. # The default of `false` means "no restart needed" — appropriate when the role's
  86. # installation tasks haven't run (e.g., due to --tags skipping them).
  87. prometheus_nginxlog_exporter_restart_necessary: false