06 Apr 2020 09:48 PM
Hi,
I developed a oneagent plugin with sucess, but I could not not created a custom chart with Sum of all metrics values.
I tried with entity: HOST and PROCESS_GROUP_INSTANCE.
Can someone help me?
Solved! Go to Solution.
07 Apr 2020 06:23 AM
There is no option to sum all values from metric dimensions. In such case metric should have option to disable dimension (For example hostname). Those metricos can’t do that so you will not be able to get sum. I’ve done RFE for such case some time ago. As I rememeber I’ve got feedback that they are working about such option in the future.
Sebastian
20 Apr 2020 06:46 PM
Hi Sebastian,
Share your RFE for me to up vote.
07 Apr 2020 01:07 PM
@marcus b. Keep an eye out for this as it was demoed to a me last week. There will be an option to have the SUM which will allow you to total up all of the line items in a given custom chart. Dynatrace has not released when this will be released and available. Keep an eye out for it tho.
07 Apr 2020 02:26 PM
Hi gyus,
Thank you for this information. This option is really important for all dashboards.
Share your RFE for me to up vote.
11 May 2020 01:00 PM
Hi,
i changed my json and i was successful.
i needed to create metric with parameter "entity": "PROCESS_GROUP". Ex:
{
"name": "custom.python.win.perfmon",
"version": "1.03",
"type": "python",
"entity": "PROCESS_GROUP_INSTANCE",
"metricGroup": "custom.python.win.perfmon",
"source": {
"package": "winperfmon",
"className": "WinPerfmon",
"install_requires": ["winstats"],
"activation": "Singleton"
},
"metrics": [
{
"timeseries": {
"key": "terminal_services.user_sessions",
"unit": "Count",
"aggregation": "avg",
"dimensions": ["Metric"],
"displayname": "Perfmon - Terminal Services"}
},
{
"entity": "PROCESS_GROUP",
"timeseries": {
"key": "terminal_services.user_sessions.group",
"unit": "Count",
"aggregation": "avg",
"dimensions": ["Metric"],
"displayname": "Perfmon - Terminal Services Group"}
}
And entity_id in Code .py