Sending data dog custom metrics using azure container apps

_Esteban Bett 30 Reputation points
2024-06-10T12:47:46.6566667+00:00

Hi,

Currently, we are monitoring azure container apps (ACA) services and now we are planning to use data dog DogStatsD client lib to send custom metrics. According to this article: https://docs.datadoghq.com/serverless/azure_container_apps/ we should be able to do it right?.

The library requires to set DD_AGENT_HOST.

We would be the host ip and for an ACA service?

THanks

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
323 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. _Esteban Bett 30 Reputation points
    2024-06-10T14:34:48.1833333+00:00

    It worked by adding these variables

    • name: "DD_AGENT_HOST"   value: "127.0.0.1"
    • name: "DD_DOGSTATSD_PORT"   value: 8126
    0 comments No comments

  2. JananiRamesh-MSFT 23,016 Reputation points
    2024-06-12T06:54:14.4266667+00:00

    @_Esteban Bett glad to see you were able to resolve your issue. Thanks for posting your solution so that others experiencing the same thing can easily reference this.

    Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer, they can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer.

    Issue: OP was monitoring azure container apps and wanted to know if data dog DogStatsD client lib can be used to send custom metrics.

    Solution: you should be able to use the DogStatsD client library to send custom metrics from your Azure Container Apps (ACA) services to Datadog.

    it worked for OP by adding the environment variables DD_AGENT_HOST to 127.0.0.1 and DD_DOGSTATSD_PORT to 8126

    0 comments No comments