Since we have leader election true:
kubectl create -f datadog/dd-configmap.yaml
Ensure we have all the permissions we need (including for leader election):
kubectl create -f datadog/datadog-rbac.yaml
Set up a mock check integration (hhtp_check) so that logs are enabled (otherwise it shows logs as disabled)
kubectl create -f datadog/example-integration.yaml
Finally launch the agent
kubectl create -f datadog/datadog-agent.yaml
Validate that dd-agent is running.
kubectl get daemonset
Run the some checks:
kubectl exec datadog-agent-.. agent status
kubectl exec datadog-agent-.. agent configcheck
kubectl exec datadog-agent-.. agent health
Under "Checks" the status command outputs what metrics are currently being collected.
Run the kube state metrics
kubectl create -f datadog/kube-state-metrics.yaml