# Metric syntacs

**URL:** <https://community.dynatrace.com/t/metric-syntacs/50446>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed\
**Created:** [February 25, 2025, 10:28am UTC](https://community.dynatrace.com/t/metric-syntacs/50446 "2025-02-25T10:28:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [February 25, 2025, 10:28am UTC](https://community.dynatrace.com/t/metric-syntacs/50446/1 "2025-02-25T10:28:43Z")

</div>

Hello,

From the documentation I read:

The key of the metric you’re submitting. It consists of sections, separated by dots, for example&nbsp;first.second.third.

Could it be that the max number of sections is 4?

I got some issue’s converting extension 1.0 → 2.0

After build command below error is returned

{  
“code”: 400,  
“message”: "Validation errors for asset PROCESS\_GROUP\_INSTANCE:\nGiven property ‘metricSelector’ with value: ‘jmx.ext.aaa.bbb.ccc.99999.dddd.eeee.metric\_Value\_1234567890:splitBy(“dt.entity.process\_group\_instance”)’ Metric selector parse error: line 1:28 at 'dddd\nGiven property ‘metricSelector’ with value: ‘jmx…:splitBy(“dt.entity.process\_group\_instance”)’

(repeats for every metric)

creating a metric with 4 sections saves the day (-;

KR Henk

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [February 25, 2025, 10:33am UTC](https://community.dynatrace.com/t/metric-syntacs/50446/2 "2025-02-25T10:33:53Z")

</div>

Sorry found my own answer:

- Custom metrics you can feed to Dynatrace via metric ingestion. These don’t have any fixed prefix, as the&nbsp;[ingestion protocol](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/reference/metric-ingestion-protocol)&nbsp;is completely flexible.

So the conversion from extension 1.0 to 2.0 is ok, but there is still an old check in a schema… Or extension 2.0 uses only classic metrics,KR Henk
