diff options
author | mat <github@matdoes.dev> | 2021-12-29 19:07:39 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-12-29 19:07:39 -0600 |
commit | 6e74bbde09758641641aabae608f2c08ea2e4f15 (patch) | |
tree | cddf4d19ca12b27566f6f5ff751776235a6712de /src/index.ts | |
parent | 4ead6ecb87aa07d43ade3ab859d2052f3da3fe12 (diff) | |
download | skyblock-api-6e74bbde09758641641aabae608f2c08ea2e4f15.tar.gz skyblock-api-6e74bbde09758641641aabae608f2c08ea2e4f15.tar.bz2 skyblock-api-6e74bbde09758641641aabae608f2c08ea2e4f15.zip |
Revert "add prom-client"
This reverts commit 4ead6ecb87aa07d43ade3ab859d2052f3da3fe12.
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/index.ts b/src/index.ts index ffa683e..d0e4fd8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,6 @@ import * as discord from './discord.js' import express from 'express' import { getKeyUsage } from './hypixelApi.js' import { basicPlayerCache, basicProfilesCache, playerCache, profileCache, profileNameCache, profilesCache, usernameCache } from './hypixelCached.js' -import { collectDefaultMetrics, register } from 'prom-client' const app = express() @@ -186,18 +185,6 @@ app.post('/accounts/update', async (req, res) => { } }) - -// grafana integration -collectDefaultMetrics() -app.get('/metrics', async (_req, res) => { - try { - res.set('Content-Type', register.contentType) - res.end(await register.metrics()) - } catch (err) { - res.status(500).end(err) - } -}) - process.on('uncaughtException', err => console.error(err)) process.on('unhandledRejection', (err, promise) => console.error(promise, err)) |