adding alloy

This commit is contained in:
James Mellors 2025-05-07 23:05:04 +01:00
parent 2dd86e526f
commit 905099c96c
3 changed files with 45 additions and 1 deletions

14
alloy/values.yaml Normal file
View File

@ -0,0 +1,14 @@
alloy:
extraPorts:
- name: otlp-grpc
port: 4317
targetPort: 4317
protocol: TCP
- name: otlp-http
port: 4318
targetPort: 4318
protocol: TCP
mounts:
# -- Mount /var/log from the host into the container for log collection.
varlog: true

29
argo/apps/alloy.yaml Normal file
View File

@ -0,0 +1,29 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: loki
namespace: argocd
spec:
project: default
sources:
- repoURL: https://git.james-mellors.com/mello/Monitoring.git
targetRevision: main
ref: valuesRef # Arbitrary reference namey
- repoURL: https://grafana.github.io/helm-charts
chart: alloy
targetRevision: 1.0.2 # The chart version
helm:
# Reference the values stored in 'valuesRef' from the first source
valueFiles:
- $valuesRef/alloy/values.yaml # Path within the Git repo
destination:
server: https://kubernetes.default.svc
namespace: monitoring
syncPolicy:
syncOptions:
- ServerSideApply=true
automated:
prune: true
selfHeal: true

View File

@ -3,4 +3,5 @@ resources:
- ntfy.yaml
- kube-prometheus-stack.yaml
- istio-ingress-manager.yaml
- loki.yaml
- loki.yaml
- alloy.yaml