文件
k3s/apps/infra/monitor/loki/helmchart-promtail.yaml
T

25 行
636 B
YAML

apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: loki-promtail
namespace: infra-monitor
spec:
repo: https://grafana.github.io/helm-charts
chart: promtail
targetNamespace: infra-monitor
version: 6.7.1
valuesContent: |-
nodeSelector:
svccontroller.k3s.cattle.io/enablelb: "true"
configmap:
enabled: true
config:
clients:
- url: http://loki.infra-monitor:3100/loki/api/v1/push
tenant_id: 1
snippets:
extraRelabelConfigs:
- source_labels: [__meta_kubernetes_pod_label_log_collecting_enabled]
action: keep
regex: true