File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { cpus as osCpus } from 'node:os'
2
2
import { ok , strictEqual } from 'node:assert'
3
- import { Summary } from 'prom-client'
3
+ import { Gauge } from 'prom-client'
4
4
import pLimit from 'p-limit'
5
5
import gtfsRtBindings from './mta-gtfs-realtime.pb.js'
6
6
import { connectToPostgres } from './db.js'
@@ -44,7 +44,7 @@ const parseEncodedFeed = (feedEncoded) => {
44
44
return feedMessage
45
45
}
46
46
47
- const _matchingTimeSeconds = new Summary ( {
47
+ const _matchingTimeSeconds = new Gauge ( {
48
48
name : 'feedmessage_matching_time_seconds' ,
49
49
help : 'time needed to match an entire FeedMessage with the GTFS Schedule data' ,
50
50
registers : [ metricsRegister ] ,
@@ -146,7 +146,7 @@ const createParseAndProcessFeed = (cfg) => {
146
146
const t0 = performance . now ( )
147
147
await Promise . all ( feedMessage . entity . map ( queueFeedEntityMatching ) )
148
148
const matchingTime = ( performance . now ( ) - t0 ) / 1000
149
- _matchingTimeSeconds . observe ( {
149
+ _matchingTimeSeconds . set ( {
150
150
'schedule_feed_digest' : scheduleFeedDigestSlice ,
151
151
} , matchingTime )
152
152
_logger . debug ( {
You can’t perform that action at this time.
0 commit comments