ValueError: Duplicated timeseries in CollectorRegistry:

63 views
Skip to first unread message

Khayam Gondal

unread,
Mar 21, 2020, 11:25:26 PM3/21/20
to Prometheus Users
Hi, I know this error means that there is a metric already with that name in the collection. Is there any way that I can get the already existing metric's object and use that?

For example, this is the syntax 
summary = prom.Summary('keras_predict', 'keras predictions')
I want to be able to do something like
summary = prom.get_metric_by_name('keras_predict')

Reply all
Reply to author
Forward
0 new messages