16 Jun 2022 07:35 PM - last edited on 20 Jun 2022 09:55 AM by MaciejNeumann
I have an extension that uses a certain custom metric. I would like to add a dimension to it, but seems it's not possible. One of the justifications is to guarantee the continuity of the data. But looking at the API, seems that we can only create/delete metrics...
I agree that changing some parameters (eg. "unit") might not de feasible, but changing a displayName or adding a dimension doesn't seem unreasonable to me.
Before putting in a Product Idea, has someone an idea if this is possible?
16 Jun 2022 07:38 PM
@AntonioSousa just start sending data with the dimension you need. You can't modify the metric data you already have in Dynatrace. For new data - just specify any dimension you need.
16 Jun 2022 07:42 PM
Interesting! I'll try it out...
16 Jun 2022 09:00 PM
Didn't work. Gives constraint violations, and complains about dimension not being defined.
But I might have forgotten to say one important thing: I'm using API v1, not the v2 line protocol, which I imagine is what you were referring to?
16 Jun 2022 09:40 PM
Yes, that's important. I always use Metrics v2 API instead of TImeseries v1 API. With metrics API it's definitely possible as you don't need any registration. I already almost forgot v1 API still exists.
17 Jun 2022 06:58 AM
@AntonioSousa did suggestion from @Julius_Loman worked. Were you able to create or add new dimensions against our custom metrics?
Also could you confirm if this dimension gets later available for custom alerts placeholder message?
I would like to try it sometime later for one of the client use case.
17 Jun 2022 08:51 AM
When trying to ingest data for a metric that had no dimension definition, it gave a constraint error. And I have no way to change the definition of a metric.
04 Aug 2022 02:27 AM
Hi i've been trying to add additional dimensions to a custom metrics at the calculated service metrics page in dynatrace. So far, i've only been able to add 1. Do you know how to create additional dimensions to a metrics?
08 Aug 2022 08:54 PM
@icecoolcat calculated service metrics can have only one dimension. My answer above was for ingested metrics.