updated DB query and build instructions
This commit is contained in:
@@ -107,6 +107,7 @@ ssh kisfenyo@192.168.0.162 "docker ps --filter name=felhom-controller --format '
|
||||
```
|
||||
|
||||
Then build with the next version (e.g., if current is 0.2.10, use 0.2.11):
|
||||
IMPORTANT!: Build directory is: ~/build/felhom-controller
|
||||
```bash
|
||||
ssh kisfenyo@192.168.0.180 "cd ~/build/felhom-controller && git -C ~/git/deploy-felhom-compose pull && ./build.sh <NEW_VERSION> --push"
|
||||
```
|
||||
@@ -139,7 +140,7 @@ ssh kisfenyo@192.168.0.162 "docker logs felhom-controller --tail 20"
|
||||
| Step | Command | Where |
|
||||
|------|---------|-------|
|
||||
| 1. Commit + push | `git add -A && git commit -m "..." && git push` | Local (this repo) |
|
||||
| 2. Build + push image | `ssh 192.168.0.180 "... ./build.sh <VER> --push"` | Build server |
|
||||
| 2. Build + push image | `ssh 192.168.0.180 "cd ~/build/felhom-controller... ./build.sh <VER> --push"` | Build server |
|
||||
| 3. Deploy | `ssh 192.168.0.162 "... docker compose up -d"` | Demo node |
|
||||
| 4. Verify | `ssh 192.168.0.162 "docker ps ..."` | Demo node |
|
||||
|
||||
|
||||
@@ -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