Hi Mizső,
Just like memory demand variance (see: OneAgent requirements — Dynatrace Docs), the OneAgent CPU usage can be highly variable based on the monitored environment.
The sample that @dannemca has linked is a good place to start by un-commenting those default settings, so they become active.
I usually have the CPU limit removed for OneAgent, since I’ve seen busy environments where it frequently wants up to a whole core. Then I monitor to see it’s usage and set an appropriate limit as you don’t want too much CPU throttling.
Other environments are quiet and use much less than sample settings.
An example dashboard tile that could help you to monitor:
{
"metadata": {
"configurationVersions": [
6
],
"clusterVersion": "1.249.165.20220902-174254"
},
"dashboardMetadata": {
"name": "OneAgent CPU throttling and usage",
"shared": false,
"owner": "",
"tags": [
"Self-monitoring"
],
"hasConsistentColors": false
},
"tiles": [
{
"name": "Total CPU usage vs throttling",
"tileType": "DATA_EXPLORER",
"configured": true,
"bounds": {
"top": 0,
"left": 0,
"width": 836,
"height": 456
},
"tileFilter": {},
"customName": "Total CPU usage vs throttling",
"queries": [
{
"id": "A",
"timeAggregation": "DEFAULT",
"splitBy": [],
"metricSelector": "builtin:containers.cpu.throttledMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)",
"enabled": true
},
{
"id": "B",
"timeAggregation": "DEFAULT",
"splitBy": [],
"metricSelector": "builtin:containers.cpu.usageMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)",
"enabled": true
}
],
"visualConfig": {
"type": "GRAPH_CHART",
"global": {
"hideLegend": false
},
"rules": [
{
"matcher": "A:",
"properties": {
"color": "DEFAULT"
},
"seriesOverrides": []
},
{
"matcher": "B:",
"properties": {
"color": "DEFAULT"
},
"seriesOverrides": []
}
],
"axes": {
"xAxis": {
"visible": true
},
"yAxes": [
{
"visible": true,
"min": "AUTO",
"max": "AUTO",
"position": "LEFT",
"queryIds": [
"A",
"B"
],
"defaultAxis": true
}
]
},
"heatmapSettings": {
"yAxis": "VALUE"
},
"thresholds": [
{
"axisTarget": "LEFT",
"rules": [
{
"color": "#7dc540"
},
{
"color": "#f5d30f"
},
{
"color": "#dc172a"
}
],
"queryId": "",
"visible": true
}
],
"tableSettings": {
"isThresholdBackgroundAppliedToCell": false
},
"graphChartSettings": {
"connectNulls": false
},
"honeycombSettings": {
"showHive": true,
"showLegend": true,
"showLabels": false
}
},
"queriesSettings": {
"resolution": ""
},
"metricExpressions": [
"resolution=null&(builtin:containers.cpu.throttledMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)):limit(100):names,(builtin:containers.cpu.usageMilliCores:avg:filter(and(eq(Container,dynatrace-oneagent))):splitBy(\"dt.entity.container_group_instance\",Container):sum:auto:sort(value(sum,descending)):limit(10)):limit(100):names"
]
}
]
}