Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't see custom metrics created via API in the list of the menu "Create custom chart"


I am trying to create a custom metric and add some custom device.

First I created a custom metrics with API:



"displayName" : "Nas connection dropped",
"unit" : "Count",
"dimensions": [
"types": [

Then I added a custom device with some data



"displayName" : "SMNAS01",
"ipAddresses" : [""],
"listenPorts" : ["9999"],
"type" : "NAS",
"favicon" : "",
"configUrl" : "",
"tags": ["myTagNas", "myTagNas2"],
"properties" : { "prop1" : "propvalue" },
"series" : [
"timeseriesId" : "custom:nas.connections.dropped",
"dimensions" : { "nic" : "ethernetcard1" },
"dataPoints" : [[1510309648, 10 ]]

So my custom device SMNAS01 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)

Any Idea?



Nobody knows?


Hi Quentin.

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:

I raised a Support Case with Dynatrace but am still waiting for their response.



I've the same issue too...


I have the same issue......

Any New / updates from Dynatrace Staff ??

I have the same issue, glad I'm not alone !!

Dynatrace Leader
Dynatrace Leader

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.

Common pitfalls that we identified are:

- Always send the 'type' property with each update of your metric data.

- Check your metric name, its case sensitive.

- Use current timestamp that does not lie in the future and not older than an hour, otherwise your metric data will be rejected.

- Always send the correct dimensions, if you defined ones.

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?

Do you find your device in Smartscape and does the custom device show some charts?

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.

Dynatrace Leader
Dynatrace Leader

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.


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

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.To do that, you would go to Settings > Preferences > Management zones

Dynatrace Leader
Dynatrace Leader

Please check the list of your custom devices that is accessible in technology screen as shown below:

Search for your custom device and check if your metric appears there.

Did you check my hints above? Timestamp correct?