The snippet you shared is from the metric metadata. This section of the yaml is only responsible for display names and units and such, no matter the source.
Inside your YAML you also have the the JMX section where you give the metric an ID based on the mbean attribute. If you want to rename the ID of the metric and remove “cpi.it-” from the metric ID, that’s the easiest place to do that.
If you’re just wondering why it added “count” at the end of the metric, that’s because you defined this as a count metric in the jmx section of the YAML.
Thank you for the response. I have attached a text file which contains the jmx section too.
My application is pushing the metric to JMX with bean name as "gb.request.count" and the extension file does not have this name anywhere. extension has "cpi.it-gb.gb.request". I am failing to understand how does dynatrace maps cpi.it-gb.gb.request to gb.request.count and display the metric.