-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dashboard): add resource monitoring tab and information about in…
…put status (#1209) **Issue number:[ADDON-70514](https://splunk.atlassian.net/browse/ADDON-70514)** ## Summary Extending monitoring dashboard page with resource monitoring and adding information about disabled inputs to the table. ### Changes * added new definition.json for resource consumption * changed query for the table for "input" item in the dropdown ### User experience * a new resource monitoring page is available * in the table when filtered by inputs, a column has been added informing whether the input is active or not ## Checklist If your change doesn't seem to apply, please leave them unchecked. * [x] I have performed a self-review of this change * [x] Changes have been tested * [x] Changes are documented * [x] PR title follows [conventional commit semantics](https://www.conventionalcommits.org/en/v1.0.0/) --------- Co-authored-by: Szymon Oleksy <soleksy@splunk.com>
- Loading branch information
1 parent
3b7b9e1
commit e8acfd9
Showing
14 changed files
with
623 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
186 changes: 186 additions & 0 deletions
186
splunk_add_on_ucc_framework/templates/resources_tab_definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
{ | ||
"visualizations": { | ||
"resource_tab_label_viz": { | ||
"type": "splunk.markdown", | ||
"options": { | ||
"markdown": "## Resource consumption", | ||
"fontSize": "large" | ||
} | ||
}, | ||
"resource_tab_description_viz": { | ||
"type": "splunk.markdown", | ||
"options": { | ||
"markdown": "View the resource consumption for your add-on.", | ||
"customFontSize": 12, | ||
"fontColor": "#6c7685" | ||
} | ||
}, | ||
"resource_tab_timerange_label_start_viz": { | ||
"type": "splunk.singlevalue", | ||
"options": { | ||
"majorFontSize": 12, | ||
"backgroundColor": "transparent", | ||
"majorColor": "#9fa4af" | ||
}, | ||
"dataSources": { | ||
"primary": "resource_tab_data_time_label_start_ds" | ||
} | ||
}, | ||
"resource_tab_timerange_label_end_viz": { | ||
"type": "splunk.singlevalue", | ||
"options": { | ||
"majorFontSize": 12, | ||
"backgroundColor": "transparent", | ||
"majorColor": "#9fa4af" | ||
}, | ||
"dataSources": { | ||
"primary": "resource_tab_data_time_label_end_ds" | ||
} | ||
}, | ||
"resource_tab_cpu_consumption_viz": { | ||
"type": "splunk.line", | ||
"options": { | ||
"xAxisVisibility": "hide", | ||
"xAxisTitleText": "Time", | ||
"seriesColors": [ | ||
"#A870EF" | ||
], | ||
"yAxisTitleText": "CPU (%)" | ||
}, | ||
"title": "CPU consumption", | ||
"dataSources": { | ||
"primary": "resource_tab_cpu_consumption_ds" | ||
} | ||
}, | ||
"resource_tab_memory_consumption_viz": { | ||
"type": "splunk.line", | ||
"options": { | ||
"xAxisVisibility": "hide", | ||
"xAxisTitleText": "Time", | ||
"seriesColors": [ | ||
"#A870EF" | ||
], | ||
"yAxisTitleText": "Memory (%)" | ||
}, | ||
"title": "Memory consumption", | ||
"dataSources": { | ||
"primary": "resource_tab_memory_consumption_ds" | ||
} | ||
} | ||
}, | ||
"dataSources": { | ||
"resource_tab_data_time_label_start_ds": { | ||
"type": "ds.search", | ||
"options": { | ||
"query": "| makeresults | addinfo | eval StartDate = strftime(info_min_time, \"%e %b %Y %I:%M%p\") | table StartDate", | ||
"queryParameters": { | ||
"earliest": "$resource_tab_time.earliest$", | ||
"latest": "$resource_tab_time.latest$" | ||
} | ||
} | ||
}, | ||
"resource_tab_data_time_label_end_ds": { | ||
"type": "ds.search", | ||
"options": { | ||
"query": "| makeresults | addinfo | eval EndDate = strftime(info_max_time, \"%e %b %Y %I:%M%p\") | table EndDate", | ||
"queryParameters": { | ||
"earliest": "$resource_tab_time.earliest$", | ||
"latest": "$resource_tab_time.latest$" | ||
} | ||
} | ||
}, | ||
"resource_tab_cpu_consumption_ds": { | ||
"type": "ds.search", | ||
"options": { | ||
"query": "{{resource_cpu}}", | ||
"queryParameters": { | ||
"earliest": "$resource_tab_time.earliest$", | ||
"latest": "$resource_tab_time.latest$" | ||
} | ||
} | ||
}, | ||
"resource_tab_memory_consumption_ds": { | ||
"type": "ds.search", | ||
"options": { | ||
"query": "{{resource_memory}}", | ||
"queryParameters": { | ||
"earliest": "$resource_tab_time.earliest$", | ||
"latest": "$resource_tab_time.latest$" | ||
} | ||
} | ||
} | ||
}, | ||
"defaults": {}, | ||
"inputs": { | ||
"resource_tab_input": { | ||
"options": { | ||
"defaultValue": "-24h,now", | ||
"token": "resource_tab_time" | ||
}, | ||
"title": "Time", | ||
"type": "input.timerange" | ||
} | ||
}, | ||
"layout": { | ||
"type": "grid", | ||
"globalInputs": [ | ||
"resource_tab_input" | ||
], | ||
"structure": [ | ||
{ | ||
"item": "resource_tab_label_viz", | ||
"position": { | ||
"x": 20, | ||
"y": 500, | ||
"w": 300, | ||
"h": 20 | ||
} | ||
}, | ||
{ | ||
"item": "resource_tab_description_viz", | ||
"position": { | ||
"x": 20, | ||
"y": 520, | ||
"w": 500, | ||
"h": 50 | ||
} | ||
}, | ||
{ | ||
"item": "resource_tab_timerange_label_start_viz", | ||
"position": { | ||
"x": 20, | ||
"y": 530, | ||
"w": 100, | ||
"h": 20 | ||
} | ||
}, | ||
{ | ||
"item": "resource_tab_timerange_label_end_viz", | ||
"position": { | ||
"x": 120, | ||
"y": 530, | ||
"w": 100, | ||
"h": 20 | ||
} | ||
}, | ||
{ | ||
"item": "resource_tab_cpu_consumption_viz", | ||
"position": { | ||
"x": 20, | ||
"y": 550, | ||
"w": 620, | ||
"h": 150 | ||
} | ||
}, | ||
{ | ||
"item": "resource_tab_memory_consumption_viz", | ||
"position": { | ||
"x": 640, | ||
"y": 550, | ||
"w": 620, | ||
"h": 150 | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.