digikare / nestjs-prom

A prometheus module for nestjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't set labelNames when getCounterMetric

yakiang opened this issue · comments

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: []

Fix will be merge on 0.2.6 soon