add support for Loki ruler configuration
update also broken Loki documentation link
This commit is contained in:
parent
f74de4a831
commit
765a12dadd
@ -75,7 +75,7 @@ loki_runtime_config: []
|
||||
loki_table_manager_config:
|
||||
retention_deletes_enabled: false
|
||||
retention_period: 0s
|
||||
|
||||
loki_ruler_config: {}
|
||||
|
||||
promtail_client_config:
|
||||
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#jinja2: trim_blocks: True, lstrip_blocks: True
|
||||
{{ ansible_managed | comment }}
|
||||
# https://github.com/grafana/loki/blob/master/docs/configuration/README.md#configuration-file-reference
|
||||
# https://grafana.com/docs/loki/latest/configuration/
|
||||
|
||||
{% if loki_target != "" %}
|
||||
target: {{ loki_target }}
|
||||
@ -57,3 +57,7 @@ table_manager:
|
||||
runtime_config:
|
||||
{{ loki_runtime_config | to_nice_yaml(indent=2) | indent(2, False) }}
|
||||
{% endif %}
|
||||
{% if loki_ruler_config %}
|
||||
ruler:
|
||||
{{ loki_ruler_config | to_nice_yaml(indent=2) | indent(2, False) }}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user