Skip to content

Commit

Permalink
add loki bloom support (#298)
Browse files Browse the repository at this point in the history
Co-authored-by: Ishan Jain <[email protected]>
  • Loading branch information
voidquark and ishanjainn authored Dec 5, 2024
1 parent de4f1e4 commit 87e1b96
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/loki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ Below variables allow you to extend Loki configuration to fit your needs. Always
| `loki_runtime_config` | Configuration for `runtime config` module, responsible for reloading runtime configuration file. 📚 [documentation](https://grafana.com/docs/loki/latest/configuration/#runtime_config)
| `loki_operational_config` | These are values which allow you to control aspects of Loki's operation, most commonly used for controlling types of higher verbosity logging, the values here can be overridden in the configs section of the `runtime_config` file. 📚 [documentation](https://grafana.com/docs/loki/latest/configure/#operational_config)
| `loki_tracing` | Configuration for tracing. 📚 [documentation](https://grafana.com/docs/loki/latest/configuration/#tracing)
| `loki_bloom_build` | The `bloom_build` block configures the Loki bloom planner and builder servers, responsible for building bloom filters. 📚 [documentation](https://grafana.com/docs/loki/latest/configure/#bloom_build)
| `loki_bloom_gateway` | The `bloom_gateway` block configures the Loki bloom gateway server, responsible for serving queries for filtering chunks based on filter expressions. 📚 [documentation](https://grafana.com/docs/loki/latest/configure/#bloom_gateway)

## Playbook

Expand Down
2 changes: 2 additions & 0 deletions roles/loki/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,5 @@ loki_analytics:
# loki_runtime_config:
# loki_operational_config:
# loki_tracing:
# loki_bloom_build:
# loki_bloom_gateway:
8 changes: 8 additions & 0 deletions roles/loki/templates/config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,11 @@ analytics:
common:
{{ loki_common | to_nice_yaml(indent=2,sort_keys=False) | indent(2, False) }}
{% endif %}
{% if loki_bloom_build is defined %}
bloom_build:
{{ loki_bloom_build | to_nice_yaml(indent=2,sort_keys=False) | indent(2, False) }}
{% endif %}
{% if loki_bloom_gateway is defined %}
bloom_gateway:
{{ loki_bloom_gateway | to_nice_yaml(indent=2,sort_keys=False) | indent(2, False) }}
{% endif %}

0 comments on commit 87e1b96

Please sign in to comment.