Following works and I can push to pushgateway:
failed = Gauge("test", 'failcount', registry=registry)
failed.set_to_current_time()
failed.set(10)

But when I am trying to add labels:
1. 
failed = Gauge("test", 'failcount', ["test_labels"], registry=registry)
failed.labels("test_labels").set("testing")
failed.set_to_current_time()
failed.set(10)

it gives error --> could not convert string to float: 'testing' 

2. failed = Gauge("test", 'failcount', ["test_labels"], registry=registry)
failed.labels("test_labels").set(5)
failed.set_to_current_time()
failed.set(10)

it give error - > AttributeError: 'Gauge' object has no attribute '_value' 
(white trying to execute set_to_current_time(0)


So two question : 
1. How do I set label as string
2. how do I overcome gauge' object has no attribute '_value 

could you please help..

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6e60aa11-5d40-4f8f-9fa9-159b406a9d51o%40googlegroups.com.

Reply via email to