Loki启动时通过命令行传入参数-config.file指定启动的配置文件,配置文件的详细格式请参考官网。本次测试使用的配置如下,为ansible语法: # 当前loki运行的模式,支持的字段为:# all, querier, table-manager, ingester, distributortarget:{{target}}# 如果该字段设置为true,必须将http请求的头部字段X-Scope-OrgID设置...
You will need to setup an auto-start for Loki It can be run with this command: /home/username/.loki-shell/bin/loki -config.file=/home/username/.loki-shell/config/loki-binary-config.yaml 脚本会输出你需要用来运行 Loki 的命令,你可以自己设置一个 init 脚本或其他方法来自动启动它。 如果你想的...
GENERAL TITLE Loki的配置文件是loki-local-config.yaml,支持YAML语法 loki提供http和grpc两种接口,在配置文件中可以看到对应端口,分别是3100和9096,启动后,就可以通过http接口看到数据 配置完成后,就可以启动loki了,二进制可执行文件,通过--config.file指定配置文件启动即可 promtail·安装 GENERAL TITLE Promtail安装也...
public static void main(String[] args) throws IOException { @Cleanup InputStream in = new FileInputStream(args[0]); @Cleanup OutputStream out = new FileOutputStream(args[1]); byte[] b = new byte[10000]; while (true) { int r = in.read(b); if (r == -1) break; out.write(b,...
kubectl create configmap loki-config --from-file=loki-local-config.yaml 1. 步骤2:创建Loki的PersistentVolumeClaim (PVC) (根据你的存储需求创建持久化存储资源,如果是本地存储或者动态PV,可以跳过这一步) # pvc-loki.yaml apiVersion: v1 kind: PersistentVolumeClaim ...
"-config.file=/etc/promtail/promtail.yaml", "-client.url=http://loki.loki.svc:3100/api/prom/push" ], "env": [ { "name":"HOSTNAME", "valueFrom": { "fieldRef": { "apiVersion":"v1", "fieldPath":"spec.nodeName" } }
Loki的配置文件是loki-local-config.yaml,支持YAML语法 loki提供http和grpc两种接口,在配置文件中可以看到对应端口,分别是3100和9096,启动后,就可以通过http接口看到数据 配置完成后,就可以启动loki了,二进制可执行文件,通过--config.file指定配置文件启动即可 ...
$ go get github.com/grafana/loki $cd$GOPATH/src/github.com/grafana/loki# GOPATH is $HOME/go by default.$ go build ./cmd/loki $ ./loki -config.file=./cmd/loki/loki-local-config.yaml ... To build Promtail on non-Linux platforms, use the following command: ...
object_store: filesystem schema: v11 store: boltdb-shipper server: http_listen_port:3100storage_config: boltdb_shipper: active_index_directory:/data/loki/boltdb-shipper-active cache_location:/data/loki/boltdb-shipper-cache cache_ttl: 24h
filesystem: directory: /data/loki/chunks #块存储地址 limits_config: enforce_metric_name: false reject_old_samples: true reject_old_samples_max_age: 168h chunk_store_config: # 最大可查询历史日期 28天,这个时间必须是schema_config中的period的倍数,否则报错。