<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Micrometer.DynatraceMetricsRegistry - Dynatrace always returns 400 error in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/127182#M15786</link>
    <description>&lt;P&gt;I am building a Spring Boot 2.2.1.RELEASE application and using Micrometer, Actuator and DynatraceMetricsRegistry for piping custom metrics, JVM and HTTP metrics into Dynatrace . But this is not working as expected in Dynatrace. &lt;/P&gt;&lt;P&gt;I get the following errors as per the polling interval configured in the application.properties for Dynatrace :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Log Excerpt :&lt;/STRONG&gt; &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:06.234 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to create custom metric custom:jvm.threads.states in dynatrace: {"error":{"code":400,"message":"&lt;STRONG&gt;The dimensions of an already configured timeseries id cannot be changed. Currently configured dimensions are: jvm.threads.states&lt;/STRONG&gt;"}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:06.634 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to create custom metric custom:http.server.requests.count in dynatrace: {"error":{"code":400,"message":"&lt;STRONG&gt;The dimensions of an already configured timeseries id cannot be changed. Currently configured dimensions are: coffee"&lt;/STRONG&gt;}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:06.973 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to create custom metric custom:http.server.requests.max in dynatrace: {"error":{"code":400,"message":"&lt;STRONG&gt;The dimensions of an already configured timeseries id cannot be changed. Currently configured dimensions are: coffee&lt;/STRONG&gt;"}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;..................&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.................&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:09.997 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to send metrics to dynatrace: {"error":{"code":400,"message":"Constraints violated.","constraintViolations":[{"path":"series[20].dimensions","message":"&lt;STRONG&gt;Dimensions don't match dimensions specified in configuration&lt;/STRONG&gt;. Allowed extra dimensions from the configuration are: jvm.gc.memory.allocated","parameterLocation":"PAYLOAD_BODY","location":null}]}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have created a custom device under the technologies section in Dynatrace and no metrics are getting captured in the dynatrace dashboard. Please help . &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;My application.properties are : &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;management.endpoints.web.exposure.include=health,info&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Although the below ones are obfuscated they are correct and worked when I tested this using a REST client tool :  &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;management.metrics.export.dynatrace.api-token=XXXXXX&lt;BR /&gt;management.metrics.export.dynatrace.uri=https://XXXXXX.live.dynatrace.com&lt;BR /&gt;management.metrics.export.dynatrace.device-id=XXXXXX&lt;BR /&gt;management.metrics.export.dynatrace.enabled=true&lt;BR /&gt;management.metrics.export.dynatrace.group=XXXXXX&lt;BR /&gt;management.metrics.export.dynatrace.step=1m&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Feb 2020 21:23:35 GMT</pubDate>
    <dc:creator>dpiguestanalyti</dc:creator>
    <dc:date>2020-02-05T21:23:35Z</dc:date>
    <item>
      <title>Micrometer.DynatraceMetricsRegistry - Dynatrace always returns 400 error</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/127182#M15786</link>
      <description>&lt;P&gt;I am building a Spring Boot 2.2.1.RELEASE application and using Micrometer, Actuator and DynatraceMetricsRegistry for piping custom metrics, JVM and HTTP metrics into Dynatrace . But this is not working as expected in Dynatrace. &lt;/P&gt;&lt;P&gt;I get the following errors as per the polling interval configured in the application.properties for Dynatrace :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Log Excerpt :&lt;/STRONG&gt; &lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:06.234 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to create custom metric custom:jvm.threads.states in dynatrace: {"error":{"code":400,"message":"&lt;STRONG&gt;The dimensions of an already configured timeseries id cannot be changed. Currently configured dimensions are: jvm.threads.states&lt;/STRONG&gt;"}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:06.634 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to create custom metric custom:http.server.requests.count in dynatrace: {"error":{"code":400,"message":"&lt;STRONG&gt;The dimensions of an already configured timeseries id cannot be changed. Currently configured dimensions are: coffee"&lt;/STRONG&gt;}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:06.973 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to create custom metric custom:http.server.requests.max in dynatrace: {"error":{"code":400,"message":"&lt;STRONG&gt;The dimensions of an already configured timeseries id cannot be changed. Currently configured dimensions are: coffee&lt;/STRONG&gt;"}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;..................&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.................&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2020-02-06 02:21:09.997 ERROR 64357 --- [trics-publisher] i.m.dynatrace.DynatraceMeterRegistry     : failed to send metrics to dynatrace: {"error":{"code":400,"message":"Constraints violated.","constraintViolations":[{"path":"series[20].dimensions","message":"&lt;STRONG&gt;Dimensions don't match dimensions specified in configuration&lt;/STRONG&gt;. Allowed extra dimensions from the configuration are: jvm.gc.memory.allocated","parameterLocation":"PAYLOAD_BODY","location":null}]}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have created a custom device under the technologies section in Dynatrace and no metrics are getting captured in the dynatrace dashboard. Please help . &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;My application.properties are : &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;management.endpoints.web.exposure.include=health,info&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Although the below ones are obfuscated they are correct and worked when I tested this using a REST client tool :  &lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;management.metrics.export.dynatrace.api-token=XXXXXX&lt;BR /&gt;management.metrics.export.dynatrace.uri=https://XXXXXX.live.dynatrace.com&lt;BR /&gt;management.metrics.export.dynatrace.device-id=XXXXXX&lt;BR /&gt;management.metrics.export.dynatrace.enabled=true&lt;BR /&gt;management.metrics.export.dynatrace.group=XXXXXX&lt;BR /&gt;management.metrics.export.dynatrace.step=1m&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 21:23:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/127182#M15786</guid>
      <dc:creator>dpiguestanalyti</dc:creator>
      <dc:date>2020-02-05T21:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Micrometer.DynatraceMetricsRegistry - Dynatrace always returns 400 error</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/127183#M15787</link>
      <description>&lt;P&gt;It means that you have already created custom metrics on this ID and you cannot redefine dimensions for it. You should change id of metric, or delete them and recreate again.&lt;/P&gt;&lt;P&gt;Sebastian  &lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 22:00:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/127183#M15787</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-02-05T22:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Micrometer.DynatraceMetricsRegistry - Dynatrace always returns 400 error</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/164549#M16472</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having similar issue...We recently received dynatrace custom device details like&lt;BR /&gt;api-token and uri&lt;BR /&gt;&lt;BR /&gt;I configured the below properties in spring-boot application.yml file&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;management&lt;/SPAN&gt;:&lt;BR /&gt;  &lt;SPAN&gt;metrics&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;export&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;dynatrace&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;api-token&lt;/SPAN&gt;: here token provided by the team who created dynatrace custom device &lt;BR /&gt;        &lt;SPAN&gt;device-id&lt;/SPAN&gt;: here gave random name&lt;BR /&gt;        &lt;SPAN&gt;enabled&lt;/SPAN&gt;: &lt;SPAN&gt;true&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        uri&lt;/SPAN&gt;: here url provided by the team who created dynatrace custom device&amp;nbsp;&lt;BR /&gt;        &lt;SPAN&gt;step&lt;/SPAN&gt;: 1m&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Also, I have below property configured in application.yml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;management&lt;BR /&gt;  endpoints&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;web&lt;/SPAN&gt;:&lt;BR /&gt;      &lt;SPAN&gt;exposure&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;include&lt;/SPAN&gt;: &lt;SPAN&gt;'info,health,metrics,refresh,prometheus'&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Apr 2021 06:42:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/164549#M16472</guid>
      <dc:creator>Rock9344</dc:creator>
      <dc:date>2021-04-20T06:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Micrometer.DynatraceMetricsRegistry - Dynatrace always returns 400 error</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/164551#M16474</link>
      <description>&lt;P&gt;Adding error details&lt;BR /&gt;&amp;nbsp;DynatraceMeterRegistry.class 2021-04-17 13:50:00,112 ERROR[io.micrometer.dynatrace.DynatraceMeterRegistry,THREAD=main,] failed to create custom metric in dynatrace: custom:jvm.gc.memory.promoted java.net.SocketTimeoutException: connect timed out -- --&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 19:18:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/164551#M16474</guid>
      <dc:creator>Rock9344</dc:creator>
      <dc:date>2021-04-17T19:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Micrometer.DynatraceMetricsRegistry - Dynatrace always returns 400 error</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/180264#M19847</link>
      <description>&lt;P&gt;Hello! I just wanted to let you know - and for future references - that we have published a new version of the micrometer registry for Dynatrace:&amp;nbsp;&lt;A href="https://micrometer.io/docs/registry/dynatrace" target="_blank"&gt;https://micrometer.io/docs/registry/dynatrace&lt;/A&gt;, with simplified deployment and that automatically connecting your Micrometer metrics to the topology.&lt;BR /&gt;&lt;BR /&gt;Documentation:&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/micrometer" target="_blank"&gt;https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/micrometer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sonja&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 09:28:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Micrometer-DynatraceMetricsRegistry-Dynatrace-always-returns-400/m-p/180264#M19847</guid>
      <dc:creator>sonja</dc:creator>
      <dc:date>2022-02-07T09:28:00Z</dc:date>
    </item>
  </channel>
</rss>

