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

Sum of all metrics values in custom chart

maborin
Participant

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?

5 REPLIES 5

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

Hi Sebastian,
Share your RFE for me to up vote.

ChadTurner
Leader

@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.

-Chad

maborin
Participant

Hi gyus,

Thank you for this information. This option is really important for all dashboards.

Share your RFE for me to up vote.

maborin
Participant

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