mirror of https://github.com/thaldrin/thaldrin.git
same as last commit
This commit is contained in:
parent
f33b4b572d
commit
412b2ef0e5
|
@ -10,11 +10,10 @@ export default class Prometheus {
|
||||||
public guildCount!: prom.Gauge<string>
|
public guildCount!: prom.Gauge<string>
|
||||||
public totalGuilds!: prom.Gauge<string>
|
public totalGuilds!: prom.Gauge<string>
|
||||||
public uptime!: prom.Gauge<string>
|
public uptime!: prom.Gauge<string>
|
||||||
// public commmandsRan: prom.Counter<string>
|
public events!: prom.Counter<string>
|
||||||
#server!: ReturnType<typeof createServer>
|
#server!: ReturnType<typeof createServer>
|
||||||
|
|
||||||
load() {
|
load() {
|
||||||
// if(!vars.prometheus.port) vars.prometheus.port === 9000
|
|
||||||
prom.collectDefaultMetrics()
|
prom.collectDefaultMetrics()
|
||||||
this.commandsExecuted = new prom.Counter({
|
this.commandsExecuted = new prom.Counter({
|
||||||
labelNames: ['command'],
|
labelNames: ['command'],
|
||||||
|
@ -33,6 +32,11 @@ export default class Prometheus {
|
||||||
name: "thaldrin_guilds_total",
|
name: "thaldrin_guilds_total",
|
||||||
help: "Total Number of Guilds Thaldrin is in"
|
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({
|
this.uptime = new prom.Gauge({
|
||||||
name: "thaldrin_uptime",
|
name: "thaldrin_uptime",
|
||||||
help: "Thaldrin's Uptime"
|
help: "Thaldrin's Uptime"
|
||||||
|
|
Loading…
Reference in New Issue