<p>I've got a k8s cluster where the datadog's helm is installed.</p>
<p>I want to send custom metrics to the datadog's agent, but I don't know what value to set for the dogstatsd client host.</p>
<p>These agents are actually a daemonset so I assumed localhost would work, but it doesn't.</p>
<p>Also, given the fact that it's UDP, it's very difficult to know if requests are failing to be delivered or not, so it's very difficult to trial and error it.</p>
<p>Any idea?</p>

caeus
<p>Generally any metric you send using DogStatsD or through a custom Agent Check is a custom metric.</p>
<p>There are multiple <a href="https://docs.datadoghq.com/metrics/custom_metrics/#submitting-custom-metrics" rel="nofollow noreferrer">ways</a> to send metrics to Datadog:</p>
<p>The easiest way to get your custom application metrics into Datadog is to send them to <a href="https://docs.datadoghq.com/developers/dogstatsd/?tab=hostagent&amp;code-lang=python" rel="nofollow noreferrer">DogStatsD</a>, a metrics aggregation service bundled with the Datadog Agent.</p>
<pre><code>Set host and port to hostname/IP and port of the agent (if different from the default 127.0.0.1:8125)


statsd_host':'127.0.0.1

statsd_port':8125
</code></pre>
<p>Refer to this <a href="https://docs.datadoghq.com/metrics/custom_metrics/dogstatsd_metrics_submission/" rel="nofollow noreferrer">doc</a> for more information about custom Metric Submission through DogStatsD</p>
<p>You can also use one of the <a href="https://docs.datadoghq.com/developers/community/libraries/" rel="nofollow noreferrer">Datadog official and community contributed API and DogStatsD client libraries</a> to submit your custom metrics</p>
<p><strong>Note</strong>: There are no enforced fixed rate limits on custom metric submission. If your default allotment is exceeded, you are billed according to Datadog’s <a href="https://docs.datadoghq.com/account_management/billing/custom_metrics/#counting-custom-metrics" rel="nofollow noreferrer">billing policy</a> for custom metrics.</p>
