diff --git a/v1-config-in-helm/helm-values.yaml b/v1-config-in-helm/helm-values.yaml new file mode 100644 index 0000000..7228598 --- /dev/null +++ b/v1-config-in-helm/helm-values.yaml @@ -0,0 +1,27 @@ +alloy: + resources: {} # resource 설정 가능 + + configMap: + create: true + content: |- + // 여기서부터 컴포넌트 코드 작성 + // Alloy 에서는 //, /* */를 주석으로 사용합니다. + discovery.kubernetes "kube_system_pods" { + role = "pod" + + namespaces { + names = ["kube-system"] + } + } + + loki.source.kubernetes "kube_system_pods" { + targets = discovery.kubernetes.kube_system_pods.targets + forward_to = [loki.write.loki_instance.receiver] + } + + loki.write "loki_instance" { + endpoint { + url = "" + } + } +