Skip to content

Commit

Permalink
refactor: remove unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed Jan 1, 2025
1 parent 937145f commit 7f891b1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
3 changes: 1 addition & 2 deletions apps/monitoring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@
"@hono/node-server": "^1.13.7",
"hono": "^4.6.14",
"ws": "8.18.0",
"dockerode": "^4.0.2",
"systeminformation": "^5.23.23"
},
"packageManager": "[email protected]",
"devDependencies": {
"typescript": "^5.7.2",
"@types/node": "^20.11.17",
"tsx": "^4.7.1",
"@types/ws": "^8.5.13",
"@types/dockerode": "^3.3.32",
"ts-node": "^10.9.0",
"vitest":"2.1.8"
}
Expand Down
2 changes: 2 additions & 0 deletions apps/monitoring/src/containers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export const loadConfig = (): MonitoringConfig => {
try {
const configJson = process.env.CONTAINER_MONITORING_CONFIG;

console.log(configJson);

if (!configJson) {
return DEFAULT_CONFIG;
}
Expand Down
2 changes: 2 additions & 0 deletions apps/monitoring/src/containers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { processContainerData } from "./utils.js";
export const execAsync = util.promisify(exec);

const config = loadConfig();

console.log(config);
const REFRESH_RATE_CONTAINER = Number(
process.env.CONTAINER_REFRESH_RATE || 10000,
);
Expand Down
3 changes: 0 additions & 3 deletions apps/monitoring/src/server/server.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import fs from "node:fs";
import Docker from "dockerode";
import si from "systeminformation";
import { serverLogFile } from "../constants.js";

const docker = new Docker();

const getServerMetrics = async () => {
const [cpu, mem, load, fsSize, network, osInfo] = await Promise.all([
si.cpu(),
Expand Down
15 changes: 0 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f891b1

Please sign in to comment.