# Metric data is not visible in Dynatrace tenant

**URL:** <https://community.dynatrace.com/t/metric-data-is-not-visible-in-dynatrace-tenant/45898>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [June 3, 2024, 8:26pm UTC](https://community.dynatrace.com/t/metric-data-is-not-visible-in-dynatrace-tenant/45898 "2024-06-03T20:26:15Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kpurimitla](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kpurimitla](https://community.dynatrace.com/u/kpurimitla)\
**Post date:** [June 3, 2024, 8:26pm UTC](https://community.dynatrace.com/t/metric-data-is-not-visible-in-dynatrace-tenant/45898/1 "2024-06-03T20:26:15Z")

</div>

Hi,

I am developing a custom extension to send metrics to Dynatrace using the code below. While running the code, I can see the metric data with two dimensions being sent to Dynatrace with the specified metric name. However, the metric name displayed in Dynatrace is not the one I provided during development but an earlier one. Could you please suggest a solution?

try:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; token =get\_token(client\_id, client\_secret, remote\_host)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contact\_lists = get\_contact\_lists(token, remote\_host, division\_id)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.logger.info(“Contact lists retrieved successfully”)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for contact\_list in contact\_lists:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; contactlist\_name = contact\_list.get(“name”)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; size = contact\_list.get(“size”)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if contactlist\_name and size is not None:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;#self.report\_metric(“size”,size, dimensions={“name”: contactlist\_name, “size”: size})&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.report\_metric(“ld.custom.genesysContacts”, dimensions={“name”: contactlist\_name, “size”: size})&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; save\_to\_json(contact\_lists)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; except Exception as e:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(“Failed to retrieve contact lists:”, e)

---

_[View the full topic](https://community.dynatrace.com/t/metric-data-is-not-visible-in-dynatrace-tenant/45898)._
