16 May 2019 06:39 AM
Hi,
I believe all of timeseries metrics have "types" in the response when using TimeseriesAPI.
Like:
[
{
"timeseriesId": "beta.python.phpfpm.dev:accepted conn",
"displayName": "accepted conn",
"dimensions":
[
"PROCESS_GROUP_INSTANCE",
"pool"
],
"aggregationTypes":
[
"AVG",
"SUM",
"MIN",
"MAX"
],
"unit": "Count (count)",
"filter": "PLUGIN",
"detailedSource": "PHP-FPM",
"pluginId": "beta.python.phpfpm.dev",
"types": []
},
{
"timeseriesId": "beta.python.phpfpm.dev:active processes",
"displayName": "active processes",
"dimensions":
[
"PROCESS_GROUP_INSTANCE",
"pool"
],
"aggregationTypes":
[
"AVG",
"SUM",
"MIN",
"MAX"
],
"unit": "Count (count)",
"filter": "PLUGIN",
"detailedSource": "PHP-FPM",
"pluginId": "beta.python.phpfpm.dev",
"types": []
}
]
(https://www.dynatrace.com/support/help/shortlink/api-metrics#possible-values)
But actually, the value of "types" for all metrics is empty when I checked via "GET list of metrics definitions", then I think this is empty as default.
https://www.dynatrace.com/support/help/shortlink/api-metrics#get-list-of-metrics-definitions-
So I wonder what "types" is for.
Could you tell me when this "types" should be necessary and what it is for?
Thanks,
Kohei Saito
Solved! Go to Solution.
16 May 2019 08:30 AM
Go here, this is useful while you are creating custom metrics. They are the same metrics as any others in Dynatrace, this is way embedded ones has this node as well.
Sebastian
16 May 2019 01:46 PM
Hi Kohei,
To add to what Sebastian said, types is The definition of the technology type. Used to group metrics under a logical technology name in the UI.
When creating custom metrics, they must be assigned a software technology type that is identical to the technology type of the custom device you are sending the metric to. For example, if you define your custom device using type F5-Firewall you must also register all related custom metrics as type F5-Firewall.
For creating custom python plugin, type is used to describe the plugin technology, which for custom plugins is always set to python.
Hope This Helps
NJ
17 May 2019 09:24 AM
Hi Sebastian and Ugochukwu,
Thank you for answers.
I understand that "types" is useful for the definition of a logical technology name only in the creation of custom metric, so there are no values of "types" for the default metrics.
Is it shown in the "Techonologies" view?
(I think so)
Thanks,
Kohei