File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ import { Talk } from "./models/Talk";
27
27
import { CheckInMap } from "./CheckInMap" ;
28
28
import { ConferenceMatrixClient } from "./ConferenceMatrixClient" ;
29
29
import { IConfig } from "./config" ;
30
- import { Counter } from "prom-client" ;
30
+ import { Gauge } from "prom-client" ;
31
31
32
- const matrixIdentityApiCallsFailed = new Counter ( { name : "confbot_scheduler_last_run" , help : "The last time the Scheduler ran its tasks." } ) ;
32
+ const schedulerLastRunGauge = new Gauge ( { name : "confbot_scheduler_last_run" , help : "The last time the Scheduler ran its tasks." } ) ;
33
33
34
34
export enum ScheduledTaskType {
35
35
TalkStart = "talk_start" ,
@@ -196,7 +196,7 @@ export class Scheduler {
196
196
private async runTasks ( ) {
197
197
try {
198
198
const now = ( new Date ( ) ) . getTime ( ) ;
199
- matrixIdentityApiCallsFailed . inc ( now ) ;
199
+ schedulerLastRunGauge . set ( now ) ;
200
200
await this . lock . acquireAsync ( ) ;
201
201
LogService . info ( "Scheduler" , "Scheduling tasks" ) ;
202
202
try {
You can’t perform that action at this time.
0 commit comments