Helm chart to set up forwarding logs from a Kubernetes cluster to Datadog. Vector is used under the hood.
This is an example of how to use Vector to send logs to Datadog author couldn’t find when he was trying to set it up. It’s also the author’s exercise to learn writing Helm charts.
It is based on instructions published on Axiom website on setting up Vector.
Sender-Aggregator pattern is used to send logs to Datadog:
kubectl create secret generic datadog-creds --from-literal=DD_API_KEY=<YOUR_DATADOG_API_KEY>
(make sure to create it in the kube-system
namespace as the chart is deployed there)
helm repo add kube-logs-datadog-sender https://igor-vovk.github.io/kube-logs-datadog-sender/
helm install kube-logs-datadog-sender kube-logs-datadog-sender/kube-logs-datadog-sender
Example of ArgoCD Application manifest:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kube-logs-datadog-sender
namespace: argocd
spec:
project: default
source:
chart: kube-logs-datadog-sender
repoURL: https://igor-vovk.github.io/kube-logs-datadog-sender/
targetRevision: 0.1.2
helm:
valuesObject:
# configuration of a sender, see chart's values.yaml for all available options
destination:
server: https://kubernetes.default.svc
namespace: kube-system
syncPolicy:
automated:
prune: true
selfHeal: true
Help me to pay my Datadog bills by following those links: