This commit is contained in:
2020-05-24 21:00:43 +00:00
parent e1bf3ee12f
commit 0d699f8989
2 changed files with 44 additions and 14 deletions

View File

@@ -11,8 +11,51 @@ todo: OPS view metrics
https://www.app-metrics.io/
https://www.app-metrics.io/samples/grafana/
https://www.chartjs.org/samples/latest/
https://www.chartjs.org/docs/latest/#creating-a-chart
https://github.com/apertureless/vue-chartjs/
https://vue-chartjs.org/guide/
https://webdesign.tutsplus.com/tutorials/build-a-dynamic-dashboard-with-chartjs--webdesign-14363
https://blog.hubspot.com/marketing/types-of-graphs-for-data-visualization
https://www.datadoghq.com/blog/monitoring-101-collecting-data/
REconsidering it all, as app.metrics seems to be losing it's way, never really worked properly with asp.net core 3.x so far
is on a 4.0 release and has bugs apparently and it's always been a lot of fuckery to use
OPTIONS:
Health checks
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-3.1
does db and server not sure about performance or errors etc must research
Roll my own stats thing
The metrics was to collect vast amounts of real time data about routes being hit etc, but it's a fail for that exact purpose
so strip out app.metrics and instead just log to db a months worth of data collected every X minutes or so
Some things will need to be logged more frequently than others, for example disk space every minute seems pointless
Memory usage as well, maybe on a longer time frame?
Then can feed this data to a graph at the client and be useful to see trend over time
REPLICATE DIGITAL OCEAN UI
some of the items are irrelevant probably, but the time frame yes
Graphs with selectable TIME FRAME: 30 days, 7 days, 24 hours, 6 hours
CPU USAGE
LOAD AVERAGE (Processes waiting)
MEMORY USAGE
DISK USAGE
DISK IO
BANDWIDTH (PUBLIC)
Seems to snapshot once per minute
RESEARCH:
https://www.tpeczek.com/2017/06/feeding-server-timing-api-from-aspnet.html
https://weblogs.asp.net/jeff/asp-net-core-middleware-to-measure-request-processing-time
https://codereview.stackexchange.com/questions/235812/accurately-measure-asp-net-core-3-x-actions-execution-times-web-api-project
https://stackoverflow.com/questions/48192756/how-to-get-actual-request-execution-time
https://miniprofiler.com/
https://github.com/MiniProfiler/dotnet
WHAT I WANT TO SEE:
Wheres the bottleneck info
Am I running out of
Disk space
Memory
CPU
BANDWIDTH? (maybe not practical)
Avg response time
todo: Administration - License
- view

View File

@@ -124,19 +124,6 @@ export default {
noButtonText: window.$gz.translation.get("Cancel")
});
}
//TODO: Implement the following as it's own re-usable component instead of here
/////////////////////////////////////
// // Show a report list
// //
// async getReportChoice(vm, reports, preselected) {
// const result = await vm.$dialog.showAndWait(reportChooser, {
// reports: reports,
// title: window.$gz.translation.get("Report"),
// oktext: window.$gz.translation.get("Print"),
// canceltext: window.$gz.translation.get("Cancel"),
// selectedvalue: preselected
// });
// return result;
// }
//new functions above here
};