<?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 Re: Can't see custom metrics created via API in the list of the menu &amp;quot;Create custom chart&amp;quot; in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42200#M149</link>
    <description>&lt;P&gt;I have the same issue, glad I'm not alone !!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2018 11:51:06 GMT</pubDate>
    <dc:creator>gregor_liddell</dc:creator>
    <dc:date>2018-04-19T11:51:06Z</dc:date>
    <item>
      <title>Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42195#M144</link>
      <description>&lt;P&gt;I am trying to create a custom metric and add some custom device.&lt;/P&gt;
&lt;P&gt;First I created a custom metrics with API:&lt;/P&gt;
&lt;P&gt;HTTP PUT&lt;/P&gt;
&lt;P&gt;api/v1/timeseries/&lt;STRONG&gt;custom:nas.connections.dropped&lt;/STRONG&gt;?Api-Token=my_token&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;	"displayName" : "Nas connection dropped",&lt;BR /&gt;	"unit" : "Count",&lt;BR /&gt;	"dimensions": [&lt;BR /&gt;		"nic"&lt;BR /&gt;	],&lt;BR /&gt;	"types": [&lt;BR /&gt;		"NAS"&lt;BR /&gt;	]&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;Then I added a custom device with some data&lt;/P&gt;
&lt;P&gt;HTTP POST&lt;/P&gt;
&lt;P&gt;api/v1/entity/infrastructure/custom/&lt;STRONG&gt;SMNAS01&lt;/STRONG&gt;?Api-Token=my_token&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;{&lt;BR /&gt;  "displayName" : "SMNAS01",&lt;BR /&gt;  "ipAddresses" : ["172.20.11.43"],&lt;BR /&gt;  "listenPorts" : ["9999"],&lt;BR /&gt;  "type" : "NAS",&lt;BR /&gt;  "favicon" : "https://maxcdn.icons8.com/Share/icon/Network//nas_filled1600.png",&lt;BR /&gt;  "configUrl" : "http://172.20.11.43:80",&lt;BR /&gt;  "tags": ["myTagNas", "myTagNas2"],&lt;BR /&gt;  "properties" : { "prop1" : "propvalue" },&lt;BR /&gt;  "series" : [&lt;BR /&gt;    {&lt;BR /&gt;      "timeseriesId" : "custom:nas.connections.dropped",&lt;BR /&gt;      "dimensions" : { "nic" : "ethernetcard1" },&lt;BR /&gt;      "dataPoints" : [[1510309648, 10 ]]&lt;BR /&gt;    }&lt;BR /&gt;  ]&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;So my custom device &lt;STRONG&gt;SMNAS01 &lt;/STRONG&gt;is created, and i can find it on dynatrace web console. However i dont see any data relative to the metrics. And if i go to the menu "Create Custom Chart" I cannot see my custom metrics.. (but i can retrieve it with API)&lt;/P&gt;
&lt;P&gt;Any Idea?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 10:00:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42195#M144</guid>
      <dc:creator>quentin_badoud</dc:creator>
      <dc:date>2022-08-31T10:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42196#M145</link>
      <description>&lt;P&gt;Nobody knows?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 10:27:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42196#M145</guid>
      <dc:creator>quentin_badoud</dc:creator>
      <dc:date>2017-11-17T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42197#M146</link>
      <description>&lt;P&gt;Hi Quentin.&lt;/P&gt;&lt;P&gt;I´m having the same issue. When I call the Dynatrace API to insert the data I get a http Code '202' instead of a http Code '200', I guess that´s why the data is never inserted into Dynatrace:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/15812-img-001.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I raised a Support Case with Dynatrace but am still waiting for their response.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 08:28:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42197#M146</guid>
      <dc:creator>juanjose_garci1</dc:creator>
      <dc:date>2018-02-13T08:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42198#M147</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've the same issue too...&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 23:14:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42198#M147</guid>
      <dc:creator>d_derthe</dc:creator>
      <dc:date>2018-02-22T23:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42200#M149</link>
      <description>&lt;P&gt;I have the same issue, glad I'm not alone !!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 11:51:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42200#M149</guid>
      <dc:creator>gregor_liddell</dc:creator>
      <dc:date>2018-04-19T11:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42201#M150</link>
      <description>&lt;P&gt;Hard to tell what could be the reason you don't get the metric into the custom chart selector. By design it should appear there of course.&lt;/P&gt;&lt;P&gt;Common pitfalls that we identified are:&lt;/P&gt;&lt;P&gt;- Always send the 'type' property with each update of your metric data.&lt;/P&gt;&lt;P&gt;- Check your metric name, its case sensitive.&lt;/P&gt;&lt;P&gt;- Use current timestamp that does not lie in the future and not older than an hour, otherwise your metric data will be rejected.&lt;/P&gt;&lt;P&gt;- Always send the correct dimensions, if you defined ones. &lt;/P&gt;&lt;P&gt;From the example code above it seems that the 'type', dimensions and also metric names are correct. Did you check the timestamp and did you send continuously data? &lt;/P&gt;&lt;P&gt;Do you find your device in Smartscape and does the custom device show some charts? &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 08:01:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42201#M150</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2018-06-25T08:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42202#M151</link>
      <description>&lt;P&gt;Hi, on this side it turned out to be the timestamps we were sending because managed is compensating for timezones. We're on GMT +2 which managed knows about. I was sending timestamps using utcnow() (ie. GMT) but managed is compensating and subtracting the two hours off (because we're on GMT +2) so my metrics were technically four hours behind and enever got displayed. As soon as I started using now() instead of utcnow() to calculate the timestamps, voila !! I started getting metrics. &lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 10:39:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42202#M151</guid>
      <dc:creator>gregor_liddell</dc:creator>
      <dc:date>2018-06-25T10:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42203#M152</link>
      <description>&lt;P&gt;We will improve the usability of this API soon in order to return rejection reasons synchronously. So in an upcoming release we will return a error message in case we rejected the timestamp because its too old or in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 13:11:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42203#M152</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2018-06-25T13:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42204#M153</link>
      <description>&lt;P&gt;I am experiencing the same issue.  What's strange for me is that I can find it if I type in the custom device name in the search field of the Dynatrace web-console.   It shows it in the results and you can click on the link to get to it&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 May 2019 21:17:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42204#M153</guid>
      <dc:creator>FShimaya</dc:creator>
      <dc:date>2019-05-16T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42205#M154</link>
      <description>&lt;P&gt;Please check the list of your custom devices that is accessible in technology screen as shown below: &lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/20574-dy.png" /&gt;&lt;/P&gt;&lt;P&gt;Search for your custom device and check if your metric appears there. &lt;/P&gt;&lt;P&gt;Did you check my hints above? Timestamp correct? &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 May 2019 06:25:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42205#M154</guid>
      <dc:creator>wolfgang_beer</dc:creator>
      <dc:date>2019-05-17T06:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42206#M155</link>
      <description>&lt;P&gt;Ok this issue for me is now resolved.  I opened a support ticket with Dynatrace and a solution was quickly provided:   Update my ruleset filter so that it includes custom devices.&lt;IMG src="https://community.dynatrace.com/legacyfs/online/20583-filter.png" /&gt;To do that, you would go to Settings &amp;gt; Preferences &amp;gt; Management zones&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 May 2019 17:03:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/42206#M155</guid>
      <dc:creator>FShimaya</dc:creator>
      <dc:date>2019-05-17T17:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't see custom metrics created via API in the list of the menu "Create custom chart"</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/195042#M2064</link>
      <description>&lt;P&gt;Hi Wolfgang,&lt;/P&gt;&lt;P&gt;do you know if this improvement has been implemented yet?&lt;/P&gt;&lt;P&gt;I'm asking you this because I've just faced a problem similar to that one Gregor described and the response I was getting from the server was the following (HTTP status code 202):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"linesOk":3,"linesInvalid":0,"error":null,"warnings":null}&lt;/LI-CODE&gt;&lt;P&gt;Everything seemed OK but I could not see those metrics in Dynatrace (SAAS). I later discovered that I was sending, in the payload, timestamps in seconds instead of milliseconds:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;metric.key,dimension=value gauge,5.9361 1664057158&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Once the missing zeros were&amp;nbsp;added, metrics started appearing in the Data Explorer as expected.&lt;BR /&gt;&amp;nbsp;It would be nice to be immediately notified of these kinds of errors, avoiding spending time in&amp;nbsp;pernicious troubleshooting.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 22:28:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Can-t-see-custom-metrics-created-via-API-in-the-list-of-the-menu/m-p/195042#M2064</guid>
      <dc:creator>mcattarin</dc:creator>
      <dc:date>2022-09-24T22:28:53Z</dc:date>
    </item>
  </channel>
</rss>

