Hi Niyi, it seems like that the Datadog agent doesn’t know about the exporter so that’s why you don’t get the Metrics API. In the following example I showed how to tight between these two by having same network in the docker-compose.
It really depends on your setup.
Is your exporter accessible through http/https? If yes, you can mention the DNS in the openmetrics conf.d of Datadog. (As described in the article -> openmetrics.yaml). The nginx/ingress creates a DNS so instead of http://ccloudexporter_ccloud_exporter.. you will have your preconfigured DNS like https://myccloudexporter.company.com
Then Datadog will just read the metrics from this URL (after setting up the openmetrics.yaml conf)
If not (and your exporter is a single container. Meaning not connected to nginx/ingress), then you need that Datadog agent will know about it. If you didn’t launch it as docker-compose so you can mention localhost in the openmetrics.yaml since they’re in the same machine running (I assume).
I hope it helps better. Otherwise, let me know what is your setup and I will see how to go through it.