An Interest In:
Web News this Week
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
- March 14, 2024
Kubernetes/Istio Datadog
Datadog Helm Operator . Operator . Datadog Logging, APM, Kubernetes, Istio Monitoring, Alerting . ( ) Grafana, Prometheus, AlertManager Monitoring ... Datadog Agent .
Datadog Operator
Datadog Operator Helm .
https://github.com/DataDog/datadog-operator/blob/main/docs/getting_started.md
$ helm repo add datadog https://helm.datadoghq.com$ helm install -n datadog --create-namespace --set fullnameOverride="dd-op" mwp-datadog-operator datadog/datadog-operator
Datadog Configuration
Datadog credential Kubernetes Secret
Datadog API, APP Key Kubernetes secret
$ kubectl create secret generic datadog-secrets --from-literal api-key=<DATADOG_API_KEY> --from-literal app-key=<DATADOG_APP_KEY>
kubernetes secret
Datadog Agent Cluster Agent
datadog-operator.yaml
.
apiVersion: datadoghq.com/v1alpha1kind: DatadogAgentmetadata: namespace: datadog name: datadogspec: credentials: apiSecret: secretName: datadog-secrets keyName: api-key appSecret: secretName: datadog-secrets keyName: app-key agent: image: name: "gcr.io/datadoghq/agent:latest" config: hostPort: 8125 collectEvents: true tolerations: - operator: Exists env: - name: DD_DOGSTATSD_NON_LOCAL_TRAFFIC # Java JVM Metrics value: "true" log: enabled: true logsConfigContainerCollectAll: true apm: enabled: true hostPort: 8126 process: enabled: true processCollectionEnabled: true systemProbe: bpfDebugEnabled: true features: kubeStateMetricsCore: enabled: true networkMonitoring: enabled: true clusterAgent: image: name: "gcr.io/datadoghq/cluster-agent:latest" config: clusterChecksEnabled: true replicas: 2 clusterChecksRunner: image: name: "gcr.io/datadoghq/agent:latest" clusterName: eks-demo
- Datadog agent DaemonSet node .
- Datadog cluster agent
.
$ kubectl apply -f datadog-operator.yaml
Istio
Kubernets monitoring Logging . Istio monitoring , Envoy proxy tracing . Istio Istio operator .
https://www.datadoghq.com/blog/how-to-monitor-istiod/#monitoring-istiod-with-datadog
Istio monitoring
Datadog Istio
$ kubectl -n istio-system patch service istiod --patch "$(cat<<EOFmetadata: annotations: ad.datadoghq.com/endpoints.check_names: '["istio"]' ad.datadoghq.com/endpoints.init_configs: '[{}]' ad.datadoghq.com/endpoints.instances: | [ { "istiod_endpoint": "http://%%host%%:15014/metrics", "send_histograms_buckets": true } ]EOF)"
Istio tracing
istio-operator.yaml
APM Envoy proxy tracing . (Istio EKS Istio )
apiVersion: install.istio.io/v1alpha1kind: IstioOperatormetadata: namespace: istio-system name: istiocontrolplanespec: profile: default components: egressGateways: - name: istio-egressgateway enabled: true k8s: hpaSpec: minReplicas: 2 ingressGateways: - name: istio-ingressgateway enabled: true k8s: hpaSpec: minReplicas: 2 service: type: NodePort serviceAnnotations: alb.ingress.kubernetes.io/healthcheck-path: /healthz/ready alb.ingress.kubernetes.io/healthcheck-port: "32197" pilot: enabled: true k8s: hpaSpec: minReplicas: 2 meshConfig: enableTracing: true defaultConfig: holdApplicationUntilProxyStarts: true tracing: # Enable Datadog Tracing datadog: address: $(HOST_IP):8126 sampling: 100.0 # request tracing accessLogFile: /dev/stdout outboundTrafficPolicy: mode: REGISTRY_ONLY
meshConfig
Tracing . Istio tracing node DaemonSet Datadog Agent Tracing . Agent Datadog data . .
$ istioctl install -f istio-operator.yaml
sampling rate 100% request tracing . Istio istio-proxy Pod restart . 1.11, 1.12 . 1.10 .
Datadog APM Envoy proxy tracing . istio-proxy tracing application APM ... Istio request istio-proxy tracing (Istio Jaeger tracing ) aplication APM language Datadog APM .
Original Link: https://dev.to/airoasis/kubernetesistio-reul-wihan-datadog-seoljeong-471k
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To