alloy is back

This commit is contained in:
miwr 2025-03-20 12:36:18 +01:00
parent 5843e9498b
commit 0dbf646477
3 changed files with 23 additions and 0 deletions

View file

@ -72,6 +72,17 @@ alloy:
}
discovery.relabel "openbao_pod_logs" {
targets = discovery.kubernetes.pod.targets
rule {
source_labels = ["__meta_kubernetes_pod_name"]
action = "keep"
regex = "openbao-0"
}
}
loki.source.kubernetes "all_pod_logs" {
targets = discovery.relabel.pod_logs.output
forward_to = [loki.write.local_loki.receiver]

View file

@ -1,5 +1,17 @@
server:
extraContainers:
- name: grafana-alloy
image: grafana/alloy:latest
ports:
- containerPort: 12345
# args:
# - --config.file=/etc/alloy/config.yaml
# volumeMounts:
# - name: alloy-data
# mountPath: /var/lib/alloy/data
volumeMounts:
- name: log-storage
mountPath: /openbao/logs
- name: log-sidecar
image: alpine:latest
command: ["/bin/sh", "-c", "