mirror of https://github.com/grafana/loki
Add overrides file for our jsonnet library. (#1705)
* Add overrides files for our jsonnet library. This will now automatically load up overrides for tenants if any for each component. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com> * Add quotes on the tenant example. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com> * Mount overrides with a different path than the config. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>pull/1735/head
parent
9be21a7c6b
commit
bac3afe34c
@ -0,0 +1,28 @@ |
|||||||
|
{ |
||||||
|
_config+: { |
||||||
|
overrides: { |
||||||
|
// insert tenant overrides here. see https://github.com/grafana/loki/tree/master/docs/configuration#limits_config |
||||||
|
// |
||||||
|
// 'tenant_x': { |
||||||
|
// ingestion_rate_strategy: 'global', |
||||||
|
// ingestion_rate_mb: 12, |
||||||
|
// ingestion_burst_size_mb: 20, |
||||||
|
// max_line_size: 2048, |
||||||
|
// split_queries_by_interval: '30m', |
||||||
|
// max_concurrent_tail_requests: 10, |
||||||
|
// max_query_parallelism: 32, |
||||||
|
// }, |
||||||
|
}, |
||||||
|
}, |
||||||
|
local configMap = $.core.v1.configMap, |
||||||
|
|
||||||
|
overrides_config: |
||||||
|
configMap.new('overrides') + |
||||||
|
configMap.withData({ |
||||||
|
'overrides.yaml': $.util.manifestYaml( |
||||||
|
{ |
||||||
|
overrides: $._config.overrides, |
||||||
|
} |
||||||
|
), |
||||||
|
}), |
||||||
|
} |
Loading…
Reference in new issue