same as last commit

This commit is contained in:
Lio Young 2021-07-08 13:49:09 +02:00
parent f33b4b572d
commit 412b2ef0e5
1 changed files with 6 additions and 2 deletions

View File

@ -10,11 +10,10 @@ export default class Prometheus {
public guildCount!: prom.Gauge<string>
public totalGuilds!: prom.Gauge<string>
public uptime!: prom.Gauge<string>
// public commmandsRan: prom.Counter<string>
public events!: prom.Counter<string>
#server!: ReturnType<typeof createServer>
load() {
// if(!vars.prometheus.port) vars.prometheus.port === 9000
prom.collectDefaultMetrics()
this.commandsExecuted = new prom.Counter({
labelNames: ['command'],
@ -33,6 +32,11 @@ export default class Prometheus {
name: "thaldrin_guilds_total",
help: "Total Number of Guilds Thaldrin is in"
})
this.events = new prom.Counter({
labelNames: ['event'],
name: "thaldrin_discord_events",
help: "Received WebSocket events from Discord"
})
this.uptime = new prom.Gauge({
name: "thaldrin_uptime",
help: "Thaldrin's Uptime"