diff --git a/alloy/values.yaml b/alloy/values.yaml new file mode 100644 index 0000000..87b58fd --- /dev/null +++ b/alloy/values.yaml @@ -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 \ No newline at end of file diff --git a/argo/apps/alloy.yaml b/argo/apps/alloy.yaml new file mode 100644 index 0000000..852c3d8 --- /dev/null +++ b/argo/apps/alloy.yaml @@ -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 + \ No newline at end of file diff --git a/argo/apps/kustomization.yaml b/argo/apps/kustomization.yaml index fb83ffe..fd43e58 100644 --- a/argo/apps/kustomization.yaml +++ b/argo/apps/kustomization.yaml @@ -3,4 +3,5 @@ resources: - ntfy.yaml - kube-prometheus-stack.yaml - istio-ingress-manager.yaml - - loki.yaml \ No newline at end of file + - loki.yaml + - alloy.yaml \ No newline at end of file