Integrating Datadog with Kubernetes for Bold BI Application Monitoring and APM
Integrating Datadog with Kubernetes for Bold BI Application Monitoring and APM
This guide provides a comprehensive, step-by-step approach to integrating Datadog with your Kubernetes environment to monitor and analyze the Bold BI application. It includes instructions for setting up a Datadog account, retrieving the API key, installing the Datadog agent using Helm, and enabling Application Performance Monitoring (APM). The article also provides a link to install the Bold BI application and ensures you can visualize metrics and APM details in the Datadog UI for a seamless monitoring experience.
Prerequisites
Before starting the integration process, please ensure you have completed the following prerequisites:
Step 1: Sign-In and Obtain API Key
- Sign in to the Datadog Website: Ensure you have a Datadog account. If you do not have one, sign up at Datadog. Please find the below images,
- Complete the Signup Process: Please provide your email address and follow the instructions to complete the signup process.
- Retrieve Your API Key: Once signed in, navigate to the API section to obtain your API key for the Datadog agent. Note it down for future reference. Please find the below image,
Step 2: Install Bold BI Application
To install the Bold BI application, refer to the installation instructions available in the Bold BI Kubernetes GitHub Repository.
Steps to Integrate Datadog with Kubernetes Cluster
Step 1: Sign-In and Obtain API Key
To begin the integration with Kubernetes, the first step is to sign in to your Datadog account and obtain your API key. This key is essential for authenticating your Datadog agent with your Kubernetes environment.
Step 2: Install Datadog in Kubernetes
To install Datadog in your Kubernetes cluster, execute the following command:
helm install datadog -n datadog --set datadog.clusterName='clustername' --set datadog.site='datadog.site' --set datadog.clusterAgent.replicas='2' --set datadog.clusterAgent.createPodDisruptionBudget='true' --set datadog.kubeStateMetricsEnabled=true --set datadog.kubeStateMetricsCore.enabled=true --set datadog.logs.enabled=true --set datadog.logs.containerCollectAll=true --set datadog.apiKey='APIKEY' --set datadog.processAgent.enabled=true datadog/datadog --create-namespace
- Replace
clustername
with the name of your current cluster. - Replace
datadog.site
with the appropriate Datadog UI site. - Replace
APIKEY
with your valid Datadog API key.
Step 3: Verify Installation
Once the installation is complete, you should be able to see basic metrics from your Kubernetes cluster in the Datadog UI.
Step 4: Enable APM Details
To enable Application Performance Monitoring (APM) details, run the following command:
helm upgrade datadog datadog/datadog -n datadog --set datadog.clusterName='clustername' --set datadog.site='datadog site URL' --set datadog.clusterAgent.replicas='2' --set datadog.clusterAgent.createPodDisruptionBudget='true' --set datadog.kubeStateMetricsEnabled=true --set datadog.kubeStateMetricsCore.enabled=true --set datadog.logs.enabled=true --set datadog.logs.containerCollectAll=true --set datadog.apiKey='APIKEY' --set datadog.processAgent.enabled=true --set datadog.apm.enabled=true --set datadog.apm.portEnabled=true --set datadog.apm.port=8126 --set datadog.apm.socketEnabled=true --set datadog.apm.useSocketVolume=false --set datadog.apm.socketPath='/var/run/datadog/apm.socket' --set datadog.apm.hostSocketPath='/var/run/datadog/' --set datadog.apm.instrumentation.enabled=true --set datadog.apm.instrumentation.libVersions.java='1' --set datadog.apm.instrumentation.libVersions.dotnet='3' --set datadog.apm.instrumentation.libVersions.python='2' --set datadog.apm.instrumentation.libVersions.js='5' --set datadog.apm.instrumentation.libVersions.ruby='2' --set datadog.serviceMonitoring.enabled=true --set datadog.networkMonitoring.enabled=true --set datadog.containerExclude="name:datadog-agent" --set datadog.containerInclude=".*"
- Ensure to replace the below placeholders with the below appropriate values.
- Replace
clustername
with the name of your current cluster. - Replace
datadog.site
with the appropriate Datadog UI site. - Replace
APIKEY
with your valid Datadog API key.
- Replace
Step 5: Access APM Details
After a few minutes, APM details should be available in the Datadog UI. Please find the image below,