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: token =get_token(client_id, client_secret, remote_host) contact_lists = get_contact_lists(token, remote_host, division_id) self.logger.info(“Contact lists retrieved successfully”) for contact_list in contact_lists: contactlist_name = contact_list.get(“name”) size = contact_list.get(“size”) if contactlist_name and size is not None: #self.report_metric(“size”,size, dimensions={“name”: contactlist_name, “size”: size}) self.report_metric(“ld.custom.genesysContacts”, dimensions={“name”: contactlist_name, “size”: size}) save_to_json(contact_lists) except Exception as e: print(“Failed to retrieve contact lists:”, e)