[英]Loki connection refused on Grafana
caller=client.go:349 component=client host=loki:3100 msg="error sending batch, will retry" status=-1 error="Post "http://loki:3100/loki/api/v1/push": dial tcp 172 caller=client.go:349 component=client host=loki:3100 msg="错误发送批次,将重试" status=-1 error="Post "http://loki:3100/loki/api/v1/push" : 拨打 tcp 172
Please help请帮忙
I encountered the same problem as you.我遇到了和你一样的问题。 Finally I found the missing rbac.最后我找到了丢失的 rbac。 I solved it by the following method:我通过以下方法解决了它:
kubectl get sa -n loki
NAME SECRETS AGE
default 1 17h
loki 1 41m
loki-grafana 1 41m
loki-grafana-test 1 41m
loki-promtail 1 41m
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: promtail-clusterrole
rules:
- apiGroups: [""]
resources:
- nodes
- services
- pods
verbs:
- get
- watch
- list
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: promtail-clusterrolebinding
subjects:
- kind: ServiceAccount
name: loki-promtail # your promtail sa
namespace: loki
roleRef:
kind: ClusterRole
name: promtail-clusterrole
apiGroup: rbac.authorization.k8s.io
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.