Skip to content

Commit

Permalink
add query_range, query_scheduler and custom configs
Browse files Browse the repository at this point in the history
query_range and query_scheduler for the sake of
grafana/loki#4613

'custom_config' is for all future sections which may be added
and aren't available at the moment of publishing this role
  • Loading branch information
weakcamel committed Jun 10, 2022
1 parent 0e57631 commit 450257b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ loki_table_manager_config:
retention_deletes_enabled: false
retention_period: 0s
loki_ruler_config: {}
loki_query_scheduler: {}
loki_query_range: {}

# catch-all config option to be added "verbatim" to loki.yml
loki_custom_config: {}

promtail_client_config:
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"
Expand Down
11 changes: 11 additions & 0 deletions templates/loki.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,14 @@ runtime_config:
ruler:
{{ loki_ruler_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
{% if loki_query_scheduler %}
query_scheduler:
{{ loki_query_scheduler | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
{% if loki_query_range %}
query_range:
{{ loki_query_range | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
{% if loki_custom_config %}
{{ loki_custom_config | to_nice_yaml(indent=2) }}
{% endif %}

0 comments on commit 450257b

Please sign in to comment.