From 4fbf8befbf85f26d5fd0229e9721114a96f9d4b0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 27 May 2020 23:16:19 +0000 Subject: [PATCH] --- .vscode/launch.json | 2 +- .../generator/CoreJobMetricsSnapshot.cs | 40 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 95c9b301..6b9a0d68 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -50,7 +50,7 @@ "AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles", "AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles", "AYANOVA_METRICS_USE_INFLUXDB": "false", - "AYANOVA_SERVER_TEST_MODE":"false", + "AYANOVA_SERVER_TEST_MODE":"true", "AYANOVA_SERVER_TEST_MODE_SEEDLEVEL":"small", "AYANOVA_SERVER_TEST_MODE_TZ_OFFSET":"-7", "AYANOVA_BACKUP_PG_DUMP_PATH":"C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\" diff --git a/server/AyaNova/generator/CoreJobMetricsSnapshot.cs b/server/AyaNova/generator/CoreJobMetricsSnapshot.cs index e8491ce4..8a802c07 100644 --- a/server/AyaNova/generator/CoreJobMetricsSnapshot.cs +++ b/server/AyaNova/generator/CoreJobMetricsSnapshot.cs @@ -20,11 +20,11 @@ namespace AyaNova.Biz private static TimeSpan _oldCPUTime = TimeSpan.Zero; private static DateTime _lastSnapshot = DateTime.UtcNow; - // private static DateTime _lastRpsTime = DateTime.UtcNow; + // private static DateTime _lastRpsTime = DateTime.UtcNow; private static double _cpu = 0; #if(DEBUG) - private static TimeSpan tsOneMinute = new TimeSpan(0, 0,5); + private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0); #else private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0); #endif @@ -37,25 +37,25 @@ namespace AyaNova.Biz public static void DoJob() { - /* - TODO: - Add routes with downsampling / decimation option - i.e. Fetch(timeperiod, results to fetch) if(resultstofetch < result of query for timeperiod downsample to make it fit) - OK, not a trivial thing to graph it requires "downsampling" or "decimation" - Here is a link to a c# method that will accomplish this: - https://github.com/sveinn-steinarsson/flot-downsample/ - c# - https://gist.github.com/DanielWJudge/63300889f27c7f50eeb7 - - Add the other key metrics (datadog) - - UI bit + /* + TODO: + Add routes with downsampling / decimation option + i.e. Fetch(timeperiod, results to fetch) if(resultstofetch < result of query for timeperiod downsample to make it fit) + OK, not a trivial thing to graph it requires "downsampling" or "decimation" + Here is a link to a c# method that will accomplish this: + https://github.com/sveinn-steinarsson/flot-downsample/ + c# + https://gist.github.com/DanielWJudge/63300889f27c7f50eeb7 - Finally - make sure all the constants are set back to their proper production / testing values - Clean out old metrics DOCS and make a note for this stuff - - */ + Add the other key metrics (datadog) + + UI bit + + Finally + make sure all the constants are set back to their proper production / testing values + Clean out old metrics DOCS and make a note for this stuff + + */ //Nothing is gathered less than one minute frequency