fix loki problems with "too many requests"
This commit is contained in:
parent
9160b34178
commit
ded4be9f5d
1 changed files with 14 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
|||
|
||||
services.loki = {
|
||||
enable = true;
|
||||
# https://grafana.com/docs/loki/latest/configure/#supported-contents-and-default-values-of-lokiyaml
|
||||
configuration = {
|
||||
|
||||
server = {
|
||||
|
@ -112,10 +113,19 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# The query_range block configures the query splitting and caching in the Loki query-frontend.
|
||||
query_range = {
|
||||
# Perform query parallelisations based on storage sharding configuration and
|
||||
# query ASTs. This feature is supported only by the chunks storage engine.
|
||||
parallelise_shardable_queries = false; # false because of https://github.com/grafana/loki/issues/7649#issuecomment-1625645403
|
||||
};
|
||||
};
|
||||
|
||||
# user, group, dataDir, extraFlags, (configFile)
|
||||
};
|
||||
|
||||
# https://grafana.com/docs/grafana/latest/datasources/loki/#provision-the-loki-data-source
|
||||
services.grafana.provision.datasources.settings = {
|
||||
apiVersion = 1;
|
||||
datasources = [
|
||||
|
@ -124,6 +134,10 @@
|
|||
type = "loki";
|
||||
uid = "loki01";
|
||||
url = "http://localhost:${toString config.services.loki.configuration.server.http_listen_port}";
|
||||
jsonData = {
|
||||
timeout = 360;
|
||||
maxLines = 1000;
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue