diff --git a/lib/match.js b/lib/match.js index d2d12e1..3b4bc4f 100644 --- a/lib/match.js +++ b/lib/match.js @@ -152,7 +152,9 @@ const runGtfsMatching = async (cfg, opt = {}) => { name: 'matching_failures_total', help: 'number of matching failures', registers: [register], - labelNames: [], + labelNames: [ + 'cached', + ], }) const errorsTotal = new Counter({ name: 'matching_errors_total', @@ -220,7 +222,9 @@ const runGtfsMatching = async (cfg, opt = {}) => { cached: isCached ? '1' : '0', }) } else { - failuresTotal.inc() + failuresTotal.inc({ + cached: isCached ? '1' : '0', + }) } matchingTimeSeconds.observe({ matched: isMatched ? '1' : '0',