Procházet zdrojové kódy

matrix-prometheus feedback

pull/1898/head
Aine před 3 roky
rodič
revize
c71fea70d3
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 34969C908CCA2804
2 změnil soubory, kde provedl 9 přidání a 3 odebrání
  1. +8
    -2
      roles/matrix-prometheus/defaults/main.yml
  2. +1
    -1
      roles/matrix-prometheus/templates/systemd/matrix-prometheus.service.j2

+ 8
- 2
roles/matrix-prometheus/defaults/main.yml Zobrazit soubor

@@ -26,13 +26,19 @@ matrix_prometheus_systemd_wanted_services_list: []
# Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9090"), or empty string to not expose. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:9090"), or empty string to not expose.
matrix_prometheus_container_http_host_bind_port: '' matrix_prometheus_container_http_host_bind_port: ''


# A list of extra arguments to pass to the prometheus process
matrix_prometheus_process_extra_arguments:
# A list of default arguments to pass to the prometheus process
matrix_prometheus_process_default_arguments:
- "--config.file=/etc/prometheus/prometheus.yml" - "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus" - "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries" - "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles" - "--web.console.templates=/usr/share/prometheus/consoles"


# A list of extra arguments to pass to the prometheus process
matrix_prometheus_process_extra_arguments: []

# holds the final list of process arguments
matrix_prometheus_process_arguments: "{{ matrix_prometheus_process_default_arguments + matrix_prometheus_process_extra_arguments }}"

# Tells whether the "synapse" scraper configuration is enabled. # Tells whether the "synapse" scraper configuration is enabled.
matrix_prometheus_scraper_synapse_enabled: false matrix_prometheus_scraper_synapse_enabled: false




+ 1
- 1
roles/matrix-prometheus/templates/systemd/matrix-prometheus.service.j2 Zobrazit soubor

@@ -31,7 +31,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-prometheus \
{% for arg in matrix_prometheus_container_extra_arguments %} {% for arg in matrix_prometheus_container_extra_arguments %}
{{ arg }} \ {{ arg }} \
{% endfor %} {% endfor %}
{{ matrix_prometheus_docker_image }} {{ matrix_prometheus_process_extra_arguments|join(' ') }}
{{ matrix_prometheus_docker_image }} {{ matrix_prometheus_process_arguments|join(' ') }}


ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-prometheus 2>/dev/null || true' ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-prometheus 2>/dev/null || true'
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-prometheus 2>/dev/null || true' ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-prometheus 2>/dev/null || true'


Načítá se…
Zrušit
Uložit