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

51 строка
3.1 KiB

  1. ---
  2. # matrix-prometheus-postgres-exporter is an Prometheus exporter for postgres metrics
  3. # See: https://github.com/prometheus-community/postgres_exporter
  4. matrix_prometheus_postgres_exporter_enabled: false
  5. matrix_prometheus_postgres_exporter_version: v0.10.1
  6. matrix_prometheus_postgres_exporter_port: 9187
  7. matrix_prometheus_postgres_exporter_docker_image: "quay.io/prometheuscommunity/postgres-exporter:{{ matrix_prometheus_postgres_exporter_version }}"
  8. matrix_prometheus_postgres_exporter_docker_image_force_pull: "{{ matrix_prometheus_postgres_exporter_docker_image.endswith(':latest') }}"
  9. # A list of extra arguments to pass to the container
  10. matrix_prometheus_postgres_exporter_container_extra_arguments: ["-e PG_EXPORTER_AUTO_DISCOVER_DATABASES=true",
  11. "-e PG_EXPORTER_WEB_LISTEN_ADDRESS=\":{{matrix_prometheus_postgres_exporter_port}}\"",
  12. "-e DATA_SOURCE_NAME=\"postgresql://{{matrix_prometheus_postgres_exporter_database_username}}:{{matrix_prometheus_postgres_exporter_database_password}}@{{matrix_prometheus_postgres_exporter_database_hostname}}:5432/{{matrix_prometheus_postgres_exporter_database_name}}?sslmode=disable\""]
  13. # List of systemd services that matrix-prometheus-postgres-exporter.service depends on
  14. matrix_prometheus_postgres_exporter_systemd_required_services_list: ['docker.service']
  15. # List of systemd services that matrix-prometheus-postgres-exporter.service wants
  16. matrix_prometheus_postgres_exporter_systemd_wanted_services_list: []
  17. # details for connecting to the database
  18. matrix_prometheus_postgres_exporter_database_username: 'matrix_prometheus_postgres_exporter'
  19. matrix_prometheus_postgres_exporter_database_password: 'some-password'
  20. matrix_prometheus_postgres_exporter_database_hostname: 'matrix-postgres'
  21. matrix_prometheus_postgres_exporter_database_port: 5432
  22. matrix_prometheus_postgres_exporter_database_name: 'matrix_prometheus_postgres_exporter'
  23. # Controls whether the matrix-prometheus container exposes its HTTP port (tcp/9100 in the container).
  24. #
  25. # Takes an "<ip>:<port>" value (e.g. "127.0.0.1:9100"), or empty string to not expose.
  26. #
  27. # Official recommendations are to run this container with `--net=host`,
  28. # but we don't do that, since it:
  29. # - likely exposes the metrics web server way too publicly (before applying https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1008)
  30. # - 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`)
  31. #
  32. # Using `--net=host` and binding to Docker's `matrix` bridge network may be a solution to both,
  33. # but that's trickier to accomplish and won't necessarily work (hasn't been tested).
  34. #
  35. # Not using `--net=host` means that our network statistic reports are likely broken (inaccurate),
  36. # because node-exporter can't see all interfaces, etc.
  37. # For now, we'll live with that, until someone develops a better solution.
  38. matrix_prometheus_postgres_exporter_container_http_host_bind_port: ''
  39. matrix_prometheus_postgres_exporter_dashboard_urls:
  40. - "https://grafana.com/api/dashboards/9628/revisions/7/download"