func (q *query) Exec(ctx context.Context) (Result, error) { log, ctx := spanlogger.New(ctx, "query.Exec") defer log.Finish() rangeType := GetRangeType(q.params) timer := prometheus.NewTimer(queryTime.WithLabelValues(string(rangeType))) defer timer.ObserveDuration() // records query...
参数解析: query:一种查询语法详细见下面章节,{name=~“mysql.+”} or {namespace=“cicd”} |= "error"表示查询,namespace为CI/CD的日志中,有error字样的信息。 limit:返回日志的数量 start:开始时间,Unix时间表示方法 默认为,一小时前时间 end:结束时间,默认为当前时间 direction:forward或者backward,指定lim...
Describe the bug With a time window of more than an hour, we get a timeout on the query. Small time windows for a query are also not really fast, last 30min = 4min. query time and last 15min = 1min. query time. In addition, during the qu...
Describe the bug When querier.query-timeout is reached, queries silently fail, returning a 200 response with the data read up until the timeout was encountered. To Reproduce Steps to reproduce the behavior: set querier.query-timeout to a...
timeout:<duration>| default = 100ms # 最大空闲连接数 max_idle_conns:<int>| default = 100 update_interval:<duration>| default = 1m consistent_hash:<bool> 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16.
query_store_max_look_back_period:0querier:query_timeout:60s tail_max_duration:10m extra_query_delay:5s# 超过最大回溯时间的查询不会发送给 ingester。0 表示所有查询都发送到 ingesterquery_ingesters_within:0s engine:timeout:3m# 回溯日志行的最长时间。仅适用于即时日志查询max_look_back_period:60s...
apiVersion:v1kind:ConfigMapmetadata:name:loki-datasource-confignamespace:monitoringdata:datasource.yaml:|-apiVersion:1datasources:-name:Lokitype:lokiaccess:proxyurl:http://loki:3100jsonData:timeField:timetimeInterval:""queryTimeout:"30s"basicAuth:falseisDefault:true---apiVersion:apps/v1kind:Deploym...
redis endpoint: <string> timeout: <duration> | default = 100ms # 过期时间 expiration: <duration> | default = 0s max_idle_conns: <int> | default = 80 max_active_conns: <int> | default = 0 password: <string> enable_tls: <boolean> | default = false 缓存作用域 查询结果缓存 queryra...
ring: kvstore: #存储方式,支持consul、etcd或者memroy,三者选其一 store: <string> #访问路径 [prefix: <string> | default = "collectors/"] #kv存储的配置 [consul: <consul_config>] [host: <string> | default = "localhost:8500"] [acl_token: <string>] [http_client_timeout: <duration> | ...
{}# 所有发送给Loki的日志添加静态标签timeout:15s # 等待服务器响应请求的最大时间positions:filename:/run/promtail/positions.yamlserver:http_listen_port:3101target_config:sync_period:10sscrape_configs:-job_name:kubernetes-pods-namepipeline_stages:-docker:{}kubernetes_sd_configs:-role:podrelabel_...