# Specify a dt.extension.host for custom metrics different to the one added automatically by the OneAgent

**URL:** <https://community.dynatrace.com/t/specify-a-dt-extension-host-for-custom-metrics-different-to-the-one-added-automatically-by-the-oneagent/46468>\
**Category:** Extensions\
**Tags:** activegate, python, extensions\
**Created:** [July 4, 2024, 7:38pm UTC](https://community.dynatrace.com/t/specify-a-dt-extension-host-for-custom-metrics-different-to-the-one-added-automatically-by-the-oneagent/46468 "2024-07-04T19:38:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MarianneR](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@MarianneR](https://community.dynatrace.com/u/MarianneR)\
**Post date:** [July 16, 2024, 6:29pm UTC](https://community.dynatrace.com/t/specify-a-dt-extension-host-for-custom-metrics-different-to-the-one-added-automatically-by-the-oneagent/46468/4 "2024-07-16T18:29:17Z")

</div>

I moved the issue here and posted the code that ended up working:&nbsp;[Solved: Defining a RUNS\_ON relationship between custom entities and sql\_server instance - Dynatrace Community](https://community.dynatrace.com/topic/250438#M4803)

I defined the job as a child\_of a sql\_server\_instance instead of defining a different dt.entity.host.

For those wondering, I was able to change that metric dimension by assigning its value to a host’s id I found in Dynatrace, but it ended up not being the best fit for my particular case. The problem I had in the original post was due to the SAME\_AS relationship I had previously defined, and not due to the way the dimension was defined. However, I’m still not sure how that change affected the relationships defined, as I made the change before I got any of my relationships to work.

---

_[View the full topic](https://community.dynatrace.com/t/specify-a-dt-extension-host-for-custom-metrics-different-to-the-one-added-automatically-by-the-oneagent/46468)._
