@@ -69,7 +69,7 @@ export class PrometheusBridgeMetrics implements IBridgeMetrics {
69
69
private remoteRequest : Histogram < string > ;
70
70
private matrixRequest : Histogram < string > ;
71
71
private requestsInFlight : Map < string , number > ;
72
- private matrixRequestStatus : Map < string , "success" | "failed" > ;
72
+ private matrixRequestStatus : Map < string , "success" | "failed" > = new Map ( ) ;
73
73
private httpServer : http . Server ;
74
74
private remoteMonthlyActiveUsers : Gauge < string > ;
75
75
private bridgeBlocked : Gauge < string > ;
@@ -116,7 +116,7 @@ export class PrometheusBridgeMetrics implements IBridgeMetrics {
116
116
117
117
this . matrixRequest = new Histogram ( {
118
118
help : "Histogram of processing durations of received Matrix messages" ,
119
- labelNames : [ "outcome" ] ,
119
+ labelNames : [ "outcome" , "method" ] ,
120
120
name : "matrix_request_seconds" ,
121
121
} ) ;
122
122
register . registerMetric ( this . matrixRequest ) ;
@@ -208,7 +208,7 @@ export class PrometheusBridgeMetrics implements IBridgeMetrics {
208
208
this . matrixRequestStatus . delete ( context . uniqueId ) ;
209
209
this . matrixRequest . observe ( {
210
210
method : context . functionName ,
211
- result : successFail ,
211
+ outcome : successFail ,
212
212
} , timeMs ) ;
213
213
}
214
214
0 commit comments