Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of Advanced Insights to AMS Insights Workbook #2522

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"type": 9,
"content": {
"version": "KqlParameterItem/1.0",
"crossComponentResources": [
"{AMSResource}"
],
"parameters": [
{
"id": "7a987b04-690f-4e6c-a7b0-296d2e9aa403",
Expand Down Expand Up @@ -203,6 +200,41 @@
"name": "AlertName",
"type": 1,
"isHiddenWhenLocked": true
},
{
"id": "4ca0f8a4-8cc1-4250-9aec-99f9f0445cb5",
"version": "KqlParameterItem/1.0",
"name": "Scenario",
"type": 1,
"isHiddenWhenLocked": true
},
{
"id": "740611e9-656e-4212-9f73-b09f17d1f034",
"version": "KqlParameterItem/1.0",
"name": "Scope",
"type": 1,
"isHiddenWhenLocked": true
},
{
"id": "7c5cd3ad-962a-4061-ac96-0fc620cf2101",
"version": "KqlParameterItem/1.0",
"name": "InsightsMessage",
"type": 1,
"isHiddenWhenLocked": true
},
{
"id": "eeda92a2-6383-448f-ba09-9ba1466495dc",
"version": "KqlParameterItem/1.0",
"name": "ConstituentInsights",
"type": 1,
"isHiddenWhenLocked": true
},
{
"id": "7b74d397-fc8e-471d-bfcc-1e0c99fc386e",
"version": "KqlParameterItem/1.0",
"name": "RecommendationJson",
"type": 1,
"isHiddenWhenLocked": true
}
],
"style": "pills",
Expand Down Expand Up @@ -233,6 +265,59 @@
},
"name": "mainOverview"
},
{
"type": 1,
"content": {
"json": "#### Insights\r\n{InsightsMessage}\r\n\r\n{ConstituentInsights}\r\n"
},
"name": "AdvInsightsMessage",
"styleSettings": {
"showBorder": true
}
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "WorkloadInsights_anomalyData_CL\r\n| where Scope_s == \"{Scope}\" and SID_s == \"{SID}\" and TimeGenerated == \"{AlertFired}\" and scenario_s == \"{Scenario}\"\r\n| extend ParsedJson = parse_json(Recommendation_s)\r\n| extend VM = tostring(bag_keys(ParsedJson)[0])\r\n| extend Message = split(tostring(ParsedJson[VM]), @\" | \")\r\n| mv-expand Message\r\n| project VM, Message",
"size": 4,
"title": "Recommendations",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"gridSettings": {
"formatters": [
{
"columnMatch": "VM",
"formatter": 1,
"formatOptions": {
"customColumnWidthSetting": "10%"
}
},
{
"columnMatch": "Message",
"formatter": 1,
"formatOptions": {
"customColumnWidthSetting": "90%"
}
}
],
"labelSettings": [
{
"columnId": "Message",
"label": "Recommended Actions"
}
]
}
},
"conditionalVisibility": {
"parameterName": "RecommendationJson",
"comparison": "isNotEqualTo"
},
"name": "AdvInsightsRecommendations"
},
{
"type": 3,
"content": {
Expand Down Expand Up @@ -277,10 +362,122 @@
"parameterName": "ShowPlot",
"comparison": "isEqualTo",
"value": "true"
},
{
"parameterName": "Scenario",
"comparison": "isEqualTo"
}
],
"name": "responseTimePlot"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let endTime=todatetime(\"{EndTime}\");\r\nlet startTime=todatetime(\"{StartTime}\");\r\nlet binSize=tolong(\"{MinutesBin}\");\r\n \r\nSapNetweaver_ABAPGetWPTable_CL\r\n| where TimeGenerated between (startTime .. endTime) and SID_s==\"{SID}\" and \"{Provider}\" contains PROVIDER_INSTANCE_s\r\n| extend appServer = strcat(hostname_s, '_', tostring(toint(instanceNr_d)))\r\n| extend appServerAndWorkType = strcat(appServer, '-', Typ_s)\r\n| where appServerAndWorkType == \"{Scope}\"\r\n| summarize totalWP = count(), freeWP = countif(Status_s == 'Wait') by bin(TimeGenerated, iff(binSize<60, 1m, binSize*1m))\r\n| extend utilizationPctWP = round(toreal(totalWP - freeWP) / toreal(totalWP) * 100, 3)",
"size": 1,
"aggregation": 3,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "timechart"
},
"conditionalVisibility": {
"parameterName": "Scenario",
"comparison": "isEqualTo",
"value": "Performance/Netweaver/WorkerProcessUtilization"
},
"name": "AdvInsights-NW-WPU"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let endTime=todatetime(\"{EndTime}\");\r\nlet startTime=todatetime(\"{StartTime}\");\r\nlet binSize=tolong(\"{MinutesBin}\");\r\n \r\nSapNetweaver_SWNC_CL \r\n| where TimeGenerated between (startTime .. endTime) and SID_s==\"{SID}\" and \"{Provider}\" contains PROVIDER_INSTANCE_s and Task_Type_Name_s == \"{Scope}\"\r\n| summarize ResponseTime = avg(ST03_Avg_Resp_Time_d) by bin(TimeGenerated, iff(binSize<60, 1m, binSize*1m))",
"size": 1,
"aggregation": 3,
"title": "Response Time (ms) Task Type: {Scope}",
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "timechart",
"chartSettings": {
"seriesLabelSettings": [
{
"seriesName": "ResponseTime",
"label": "Response Time"
}
],
"ySettings": {
"numberFormatSettings": {
"unit": 23,
"options": {
"style": "decimal",
"useGrouping": true
}
}
}
}
},
"conditionalVisibility": {
"parameterName": "Scenario",
"comparison": "isEqualTo",
"value": "Performance/Netweaver/HighResponseTime"
},
"name": "AdvInsights-NW-HRT"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let endTime=todatetime(\"{EndTime}\");\r\nlet startTime=todatetime(\"{StartTime}\");\r\nlet binSize=tolong(\"{MinutesBin}\");\r\n \r\nSapNetweaver_SMON_CL\r\n| where TimeGenerated between (startTime .. endTime) and SID_s==\"{SID}\" and \"{Provider}\" contains PROVIDER_INSTANCE_s\r\n| extend instanceNr_s = iff(strlen(instanceNr_s) == 1, strcat(\"0\", instanceNr_s), instanceNr_s)\r\n| extend appServer = strcat(hostname_s, \"_\", instanceNr_s)\r\n| where appServer == \"{Scope}\"\r\n| extend totalCPU = 100 - IDLE_TOTAL_d\r\n| summarize avg(totalCPU) by bin(TimeGenerated, iff(binSize<60, 1m, binSize*1m))",
"size": 1,
"aggregation": 3,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "timechart"
},
"conditionalVisibility": {
"parameterName": "Scenario",
"comparison": "isEqualTo",
"value": "Performance/Netweaver/CPUUtilization"
},
"name": "AdvInsights-NW-CPUU"
},
{
"type": 3,
"content": {
"version": "KqlItem/1.0",
"query": "let endTime=todatetime(\"{EndTime}\");\r\nlet startTime=todatetime(\"{StartTime}\");\r\nlet binSize=tolong(\"{MinutesBin}\");\r\nlet tableSystemOverview = (\r\n SapHana_SystemOverview_CL \r\n | where TimeGenerated >= startTime\r\n | extend SID_s = tostring(VALUE_s)\r\n | extend PROVIDER_INSTANCE_s = tostring(PROVIDER_INSTANCE_s)\r\n | where NAME_s == \"Instance ID\"\r\n | distinct SID_s, PROVIDER_INSTANCE_s\r\n);\r\nSapHana_LoadHistory_CL\r\n| where TimeGenerated between (startTime .. endTime)\r\n| join kind=leftouter (tableSystemOverview) on PROVIDER_INSTANCE_s\r\n| where SID_s==\"{SID}\" and \"{Provider}\" contains PROVIDER_INSTANCE_s\r\n| where HOST_s == \"{Scope}\"\r\n| summarize avg(CPU_d) by bin(TimeGenerated, iff(binSize<60, 1m, binSize*1m))",
"size": 1,
"queryType": 0,
"resourceType": "microsoft.operationalinsights/workspaces",
"crossComponentResources": [
"{Workspace}"
],
"visualization": "timechart"
},
"conditionalVisibilities": [
{
"parameterName": "Scenario",
"comparison": "isEqualTo",
"value": "Performance/Hana/CPUUtilization"
},
{
"parameterName": "hidden",
"comparison": "isEqualTo",
"value": "true"
}
],
"name": "AdvInsights-Hana-CPUU"
},
{
"type": 3,
"content": {
Expand Down
Loading
Loading