feat: add prometheus metrics

This commit is contained in:
2024-08-13 08:13:03 -07:00
parent 188480052b
commit 23fba3d95d
9 changed files with 78 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import { Client, WebhookClient } from "discord.js";
import { Command } from "./Command";
import { Context } from "./Context";
import type { Prometheus } from "../modules/prometheus.js";
export interface ExtendedClient extends Client {
env: {
token: string;
@ -12,6 +14,7 @@ export interface ExtendedClient extends Client {
devMode: boolean;
};
db: PrismaClient;
analytics: Prometheus;
commands: Command[];
contexts: Context[];
configs: { [serverId: string]: Omit<configs, "id"> };