<p>Has anyone tried to implement the <a href="https://github.com/streamnative/pulsar-datadog" rel="nofollow noreferrer">pulsar-datadog</a> configurations into their Kubernetes based Datadog agent. I've taken the steps to helm install the datadog agent to my kubernetes cluster and copied the provided <a href="https://github.com/streamnative/pulsar-datadog/tree/master/configs" rel="nofollow noreferrer">config .yaml files</a> into the datadog trace agent directory at <code>/etc/datadog-agent/conf.d/openmetrics.d</code>.</p>
<p>I've then imported the <a href="https://github.com/streamnative/pulsar-datadog/tree/master/dashboards" rel="nofollow noreferrer">JSON files</a> under the dashboards directory into a datadog board. But nothing is populating.</p>
<p>I'm not sure I'm implementing the <a href="https://github.com/streamnative/pulsar-datadog/blob/master/configs/bookie_conf.yaml#L30" rel="nofollow noreferrer">tags</a> correctly in the config files. Is there a way to confirm that, for instance, I have my bookie id correct?</p>
<h1>What I've done</h1>
<h3>Helm installed Datadog Agent into Kubernetes</h3>
<pre><code>➜ kubectl get pods -n datadog
NAME                                          READY   STATUS    RESTARTS   AGE
datadog-cluster-agent-c65786576-8kqpb         1/1     Running   0          82m
datadog-gq9qr                                 3/3     Running   0          89m
datadog-kube-state-metrics-6fb56bf889-vt65l   1/1     Running   0          11h
datadog-v7k44                                 3/3     Running   0          90m
datadog-v9vht                                 3/3     Running   0          89m
</code></pre>
<h3>Updated tags in configuration files to match pulsar pod names</h3>
<p>For example:</p>
<pre><code>➜ kubectl get pods -n pulsar 
NAME                                             READY   STATUS    RESTARTS   AGE
...
event-platform-pulsar-1-sn-bookie-0              1/1     Running   0          9h
event-platform-pulsar-1-sn-bookie-1              1/1     Running   0          9h
event-platform-pulsar-1-sn-bookie-2              1/1     Running   0          9h
...
</code></pre>
<p>So in the <a href="https://github.com/streamnative/pulsar-datadog/blob/master/configs/bookie_conf.yaml#L30" rel="nofollow noreferrer"><code>bookie_conf.yaml</code></a> I've added:</p>
<pre><code>    tags:
      - pulsar-bookie: event-platform-pulsar-1-sn-bookie
</code></pre>
<h3>Copied configuration files into trace agent at <code>/etc/datadog-agent/conf.d/openmetrics.d</code></h3>
<pre><code>root@datadog-gq9qr:/etc/datadog-agent/conf.d/openmetrics.d# ls
bookie_conf.yaml  conf.yaml.example  zookeeper_conf.yaml
broker_conf.yaml  proxy_conf.yaml
</code></pre>
<h3>Restarted Datadog Agent to apply changes</h3>
<p><code>➜ kubectl rollout restart deployment datadog-cluster-agent -n datadog</code></p>
<h3>Imported dashboard JSON files into Datadog dashboard</h3>
<p><a href="https://i.stack.imgur.com/BrGRY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BrGRY.png" alt="enter image description here" /></a></p>

Hofbr
<p>After reviewing the <a href="https://github.com/streamnative/charts/blob/a3e2f2d94ce15638da91f4e7e8509f354c906adb/charts/pulsar/values.yaml#L1553" rel="nofollow noreferrer">Pulsar helm chart <code>values.yaml</code></a> I found options for enabling datadog.</p>
<p>Updating my <code>values.yaml</code> with the following parameters and following the steps I originally outlined in my question, I was able to visualize the metrics in Datadog.</p>
<pre><code>monitoring:
  # monitoring - prometheus
  prometheus: true
  # monitoring - datadog
  datadog: true

datadog:
  component: datadog
  namespace: pulsar
  components:
    zookeeper:
      enabled: true
      metrics: [
        &quot;\&quot;_*\&quot;&quot;
      ]
    bookkeeper:
      enabled: true
      metrics: [
        &quot;\&quot;_*\&quot;&quot;
      ]
    broker:
      enabled: true
      metrics: [
        &quot;\&quot;_*\&quot;&quot;
      ]
    proxy:
      enabled: true
      metrics: [
        &quot;\&quot;_*\&quot;&quot;
      ]
</code></pre>
