This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -50,7 +50,7 @@
|
|||||||
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
|
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
|
||||||
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
|
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
|
||||||
"AYANOVA_METRICS_USE_INFLUXDB": "false",
|
"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_SEEDLEVEL":"small",
|
||||||
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET":"-7",
|
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET":"-7",
|
||||||
"AYANOVA_BACKUP_PG_DUMP_PATH":"C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\"
|
"AYANOVA_BACKUP_PG_DUMP_PATH":"C:\\data\\code\\PostgreSQLPortable_12.0\\App\\PgSQL\\bin\\"
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
private static TimeSpan _oldCPUTime = TimeSpan.Zero;
|
private static TimeSpan _oldCPUTime = TimeSpan.Zero;
|
||||||
private static DateTime _lastSnapshot = DateTime.UtcNow;
|
private static DateTime _lastSnapshot = DateTime.UtcNow;
|
||||||
// private static DateTime _lastRpsTime = DateTime.UtcNow;
|
// private static DateTime _lastRpsTime = DateTime.UtcNow;
|
||||||
private static double _cpu = 0;
|
private static double _cpu = 0;
|
||||||
|
|
||||||
#if(DEBUG)
|
#if(DEBUG)
|
||||||
private static TimeSpan tsOneMinute = new TimeSpan(0, 0,5);
|
private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0);
|
||||||
#else
|
#else
|
||||||
private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0);
|
private static TimeSpan tsOneMinute = new TimeSpan(0, 1, 0);
|
||||||
#endif
|
#endif
|
||||||
@@ -37,25 +37,25 @@ namespace AyaNova.Biz
|
|||||||
public static void DoJob()
|
public static void DoJob()
|
||||||
{
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TODO:
|
TODO:
|
||||||
Add routes with downsampling / decimation option
|
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)
|
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"
|
OK, not a trivial thing to graph it requires "downsampling" or "decimation"
|
||||||
Here is a link to a c# method that will accomplish this:
|
Here is a link to a c# method that will accomplish this:
|
||||||
https://github.com/sveinn-steinarsson/flot-downsample/
|
https://github.com/sveinn-steinarsson/flot-downsample/
|
||||||
c#
|
c#
|
||||||
https://gist.github.com/DanielWJudge/63300889f27c7f50eeb7
|
https://gist.github.com/DanielWJudge/63300889f27c7f50eeb7
|
||||||
|
|
||||||
Add the other key metrics (datadog)
|
|
||||||
|
|
||||||
UI bit
|
|
||||||
|
|
||||||
Finally
|
Add the other key metrics (datadog)
|
||||||
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
|
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
|
//Nothing is gathered less than one minute frequency
|
||||||
|
|||||||
Reference in New Issue
Block a user