diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..61985ee --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1741874334984 + + + + + + + true + + \ No newline at end of file diff --git a/template/stacks/ref-implementation/openbao.yaml b/template/stacks/ref-implementation/openbao.yaml index ffc2923..f41598b 100644 --- a/template/stacks/ref-implementation/openbao.yaml +++ b/template/stacks/ref-implementation/openbao.yaml @@ -23,7 +23,13 @@ spec: targetRevision: HEAD helm: valueFiles: - - $values/stacks/ref-implementation/openbao/values.yaml + - $values/stacks/ref-implementation/openbao/values.yaml + - repoURL: https://github.com/grafana/alloy.git + path: charts/openbao + targetRevision: HEAD + helm: + valueFiles: + - $values/stacks/ref-implementation/openbao/logging-values.yaml - repoURL: https://{{{ .Env.DOMAIN_GITEA }}}/giteaAdmin/edfbuilder targetRevision: HEAD ref: values diff --git a/template/stacks/ref-implementation/openbao/logging-values.yaml b/template/stacks/ref-implementation/openbao/logging-values.yaml new file mode 100644 index 0000000..5eecd5a --- /dev/null +++ b/template/stacks/ref-implementation/openbao/logging-values.yaml @@ -0,0 +1,30 @@ +alloy: + create: false + name: alloy-config + key: config.alloy + + uiPathPrefix: "/alloy" + + configMap: + content: |- + + logging { + level = "info" + format = "logfmt" + } + + loki.write "local_loki" { + endpoint { + url = "http://loki-loki-distributed-gateway/loki/api/v1/push" + } + } + + local.file_match "applogs" { + path_targets = [{"__path__" = "/tmp/alloy/*"}] + sync_period = "2s" + } + + loki.source.file "local_files" { + targets = local.file_match.applogs.targets + forward_to = [loki.write.local_loki.receiver] + }