From 263c61bbcb5f745ecdc987b90b07084f89a2065b Mon Sep 17 00:00:00 2001 From: emilielr Date: Thu, 14 Nov 2024 14:37:53 +0100 Subject: [PATCH] chore(monitoring): remove prometheus --- tavla/app/actuator/prometheus/route.ts | 15 ------------- tavla/helm/tavla/values.yaml | 4 ---- tavla/package.json | 1 - tavla/yarn.lock | 29 +------------------------- 4 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 tavla/app/actuator/prometheus/route.ts diff --git a/tavla/app/actuator/prometheus/route.ts b/tavla/app/actuator/prometheus/route.ts deleted file mode 100644 index cd02e92a5..000000000 --- a/tavla/app/actuator/prometheus/route.ts +++ /dev/null @@ -1,15 +0,0 @@ -import client from 'prom-client' - -const collectDefaultMetrics = client.collectDefaultMetrics -const Registry = client.Registry -const register = new Registry() -collectDefaultMetrics({ register }) - -export async function GET() { - const metrics = await register.metrics() - return new Response(metrics, { - headers: { - 'Content-Type': register.contentType, - }, - }) -} diff --git a/tavla/helm/tavla/values.yaml b/tavla/helm/tavla/values.yaml index a14f9b4d8..a1a27f619 100644 --- a/tavla/helm/tavla/values.yaml +++ b/tavla/helm/tavla/values.yaml @@ -7,10 +7,6 @@ common: trafficType: public service: internalPort: 3000 - deployment: - prometheus: - enabled: true - path: /actuator/prometheus container: image: <+artifacts.primary.image> cpu: 0.3 diff --git a/tavla/package.json b/tavla/package.json index e5da562a7..76cbd20a7 100644 --- a/tavla/package.json +++ b/tavla/package.json @@ -54,7 +54,6 @@ "pino": "9.5.0", "pino-pretty": "11.3.0", "posthog-js": "1.176.0", - "prom-client": "15.1.3", "react": "18.3.1", "react-dom": "18.3.1", "sharp": "0.33.5", diff --git a/tavla/yarn.lock b/tavla/yarn.lock index 053a1511e..e16efc0ff 100644 --- a/tavla/yarn.lock +++ b/tavla/yarn.lock @@ -3346,7 +3346,7 @@ __metadata: languageName: node linkType: hard -"@opentelemetry/api@npm:^1.3.0, @opentelemetry/api@npm:^1.4.0, @opentelemetry/api@npm:~1.9.0": +"@opentelemetry/api@npm:^1.3.0, @opentelemetry/api@npm:~1.9.0": version: 1.9.0 resolution: "@opentelemetry/api@npm:1.9.0" checksum: 9e88e59d53ced668f3daaecfd721071c5b85a67dd386f1c6f051d1be54375d850016c881f656ffbe9a03bedae85f7e89c2f2b635313f9c9b195ad033cdc31020 @@ -4797,13 +4797,6 @@ __metadata: languageName: node linkType: hard -"bintrees@npm:1.0.2": - version: 1.0.2 - resolution: "bintrees@npm:1.0.2" - checksum: 56a52b7d3634e30002b1eda740d2517a22fa8e9e2eb088e919f37c030a0ed86e364ab59e472fc770fc8751308054bb1c892979d150e11d9e11ac33bcc1b5d16e - languageName: node - linkType: hard - "bl@npm:^4.1.0": version: 4.1.0 resolution: "bl@npm:4.1.0" @@ -12019,16 +12012,6 @@ __metadata: languageName: node linkType: hard -"prom-client@npm:15.1.3": - version: 15.1.3 - resolution: "prom-client@npm:15.1.3" - dependencies: - "@opentelemetry/api": ^1.4.0 - tdigest: ^0.1.1 - checksum: 9a57f3c16f39aa9a03da021883a4231c0bb56fc9d02f6ef9c28f913379f275640a5a33b98d9946ebf53c71011a29b580e9d2d6e3806cb1c229a3f59c65993968 - languageName: node - linkType: hard - "promise-breaker@npm:^6.0.0": version: 6.0.0 resolution: "promise-breaker@npm:6.0.0" @@ -14083,7 +14066,6 @@ __metadata: postcss: 8.4.47 posthog-js: 1.176.0 prettier: 3.3.3 - prom-client: 15.1.3 react: 18.3.1 react-dom: 18.3.1 sharp: 0.33.5 @@ -14103,15 +14085,6 @@ __metadata: languageName: node linkType: hard -"tdigest@npm:^0.1.1": - version: 0.1.2 - resolution: "tdigest@npm:0.1.2" - dependencies: - bintrees: 1.0.2 - checksum: 44de8246752b6f8c2924685f969fd3d94c36949f22b0907e99bef2b2220726dd8467f4730ea96b06040b9aa2587c0866049640039d1b956952dfa962bc2075a3 - languageName: node - linkType: hard - "teamcity-service-messages@npm:^0.1.14": version: 0.1.14 resolution: "teamcity-service-messages@npm:0.1.14"