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.
 
 

56 líneas
3.1 KiB

  1. ---
  2. # matrix-prometheus-node-exporter is an Prometheus exporter for machine metrics
  3. # See: https://prometheus.io/docs/guides/node-exporter/
  4. matrix_prometheus_node_exporter_enabled: false
  5. matrix_prometheus_node_exporter_version: v1.3.1
  6. matrix_prometheus_node_exporter_docker_image: "{{ matrix_container_global_registry_prefix }}prom/node-exporter:{{ matrix_prometheus_node_exporter_version }}"
  7. matrix_prometheus_node_exporter_docker_image_force_pull: "{{ matrix_prometheus_node_exporter_docker_image.endswith(':latest') }}"
  8. # A list of extra arguments to pass to the container
  9. matrix_prometheus_node_exporter_container_extra_arguments: []
  10. # A list of extra arguments to pass to the node_exporter process
  11. #
  12. # Example:
  13. # matrix_prometheus_node_exporter_process_extra_arguments:
  14. # - "--collector.systemd"
  15. # - "--collector.logind"
  16. #
  17. # Note: the above is just an example. Various collectors may require various tweaks to be able to run.
  18. # Running the systemd collector requires the following `matrix_prometheus_node_exporter_container_extra_arguments`:
  19. # - the socket to be mounted as well (`--mount type=bind,src=/var/run/dbus/system_bus_socket,dst=/var/run/dbus/system_bus_socket,ro,bind-propagation=rslave`)
  20. # - (on AppArmor-based distros) disabling AppArmor protection (`--security-opt apparmor=unconfined`)
  21. matrix_prometheus_node_exporter_process_extra_arguments: []
  22. # List of systemd services that matrix-prometheus.service depends on
  23. matrix_prometheus_node_exporter_systemd_required_services_list: ['docker.service']
  24. # List of systemd services that matrix-prometheus.service wants
  25. matrix_prometheus_node_exporter_systemd_wanted_services_list: []
  26. # Controls whether node-exporter metrics should be proxied (exposed) on `matrix.DOMAIN/metrics/node-exporter`.
  27. # This will only work take effect if `matrix_nginx_proxy_proxy_matrix_metrics_enabled: true`.
  28. # See the `matrix-nginx-proxy` role for details about enabling `matrix_nginx_proxy_proxy_matrix_metrics_enabled`.
  29. matrix_prometheus_node_exporter_metrics_proxying_enabled: false
  30. # Controls whether the matrix-prometheus container exposes its HTTP port (tcp/9100 in the container).
  31. #
  32. # Takes an "<ip>:<port>" value (e.g. "127.0.0.1:9100"), or empty string to not expose.
  33. #
  34. # You likely don't need to do this. See `matrix_prometheus_node_exporter_metrics_proxying_enabled`.
  35. #
  36. # Official recommendations are to run this container with `--net=host`,
  37. # but we don't do that, since it:
  38. # - likely exposes the metrics web server way too publicly (before applying https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1008)
  39. # - or listens on a loopback interface only (--net=host and 127.0.0.1:9100), which is not reachable from another container (like `matrix-prometheus`)
  40. #
  41. # Using `--net=host` and binding to Docker's `matrix` bridge network may be a solution to both,
  42. # but that's trickier to accomplish and won't necessarily work (hasn't been tested).
  43. #
  44. # Not using `--net=host` means that our network statistic reports are likely broken (inaccurate),
  45. # because node-exporter can't see all interfaces, etc.
  46. # For now, we'll live with that, until someone develops a better solution.
  47. matrix_prometheus_node_exporter_container_http_host_bind_port: ''