updated DB query and build instructions
This commit is contained in:
@@ -4,6 +4,8 @@ bin/
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
controller
|
||||
controller.exe
|
||||
|
||||
# Test artifacts
|
||||
coverage.out
|
||||
|
||||
Binary file not shown.
@@ -149,8 +149,8 @@ func (s *MetricsStore) QuerySystemMetrics(from, to time.Time, resolution int) ([
|
||||
SELECT
|
||||
(ts / ?) * ? AS bucket_ts,
|
||||
AVG(cpu_percent),
|
||||
AVG(mem_used_mb),
|
||||
AVG(mem_total_mb),
|
||||
ROUND(AVG(mem_used_mb)),
|
||||
ROUND(AVG(mem_total_mb)),
|
||||
AVG(temp_celsius),
|
||||
AVG(load_avg_1),
|
||||
AVG(load_avg_5),
|
||||
|
||||
Reference in New Issue
Block a user