digikare / nestjs-prom

A prometheus module for nestjs
160 stars 54 forks source link

can't set labelNames when getCounterMetric #37

Open yakiang opened 4 years ago

yakiang commented 4 years ago

getCounterMetric only accept name as params, and inside it calls findOrCreateCounter with the name, but findOrCreateCounter can accept labelNames as well. When I call counter.inc({ uri: '/abc' }, 1), it throws error: Added label "uri" is not included in initial labelset: []

spike008t commented 3 years ago

Fix will be merge on 0.2.6 soon