# Metrics API v2 - unit State in Extension

**URL:** <https://community.dynatrace.com/t/metrics-api-v2-unit-state-in-extension/48115>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [October 3, 2024, 8:34am UTC](https://community.dynatrace.com/t/metrics-api-v2-unit-state-in-extension/48115 "2024-10-03T08:34:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![florent\_duchate](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/florent_duchate/32/12258_2.png) [@florent\_duchate](https://community.dynatrace.com/u/florent_duchate)\
**Post date:** [October 3, 2024, 12:31pm UTC](https://community.dynatrace.com/t/metrics-api-v2-unit-state-in-extension/48115/4 "2024-10-03T12:31:25Z")

</div>

yes they can have the same value. With dimensions it is almost like having 3 separate metrics. It is best to set them all because when charting it will look better as all 3 values will show.

You don’t need to set the host in the dimension as it will be done automatically for you if your extension is local. You should add the metricstatus dimension in the definition too.

---

_[View the full topic](https://community.dynatrace.com/t/metrics-api-v2-unit-state-in-extension/48115)._
