Add Loki ruler config to loki.yml and defaults

This commit is contained in:
Rutger 2021-08-09 12:24:36 +02:00
parent f74de4a831
commit 84db437ca5
2 changed files with 6 additions and 1 deletions

View File

@ -76,6 +76,7 @@ loki_table_manager_config:
retention_deletes_enabled: false retention_deletes_enabled: false
retention_period: 0s retention_period: 0s
loki_ruler_config: []
promtail_client_config: promtail_client_config:
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push" - url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"
@ -100,4 +101,4 @@ promtail_scrape_config:
promtail_target_config: [] promtail_target_config: []
promtail_positions_config: promtail_positions_config:
filename: /tmp/positions.yaml filename: /tmp/positions.yaml

View File

@ -57,3 +57,7 @@ table_manager:
runtime_config: runtime_config:
{{ loki_runtime_config | to_nice_yaml(indent=2) | indent(2, False) }} {{ loki_runtime_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %} {% endif %}
{% if loki_ruler_config != [] %}
ruler:
{{ loki_ruler_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}