@@ -152,14 +152,14 @@ def test_histogram_exemplars(self):
152
152
# HELP a help
153
153
a_bucket{le="1.0"} 0 # {a="b"} 0.5
154
154
a_bucket{le="2.0"} 2 # {a="c"} 0.5
155
- a_bucket{le="+Inf"} 3 # {a="1234567890123456789012345678901234567890123456789012345678 "} 4 123
155
+ a_bucket{le="+Inf"} 3 # {a="2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 "} 4 123
156
156
# EOF
157
157
""" )
158
158
hfm = HistogramMetricFamily ("a" , "help" )
159
159
hfm .add_sample ("a_bucket" , {"le" : "1.0" }, 0.0 , None , Exemplar ({"a" : "b" }, 0.5 ))
160
160
hfm .add_sample ("a_bucket" , {"le" : "2.0" }, 2.0 , None , Exemplar ({"a" : "c" }, 0.5 )),
161
161
hfm .add_sample ("a_bucket" , {"le" : "+Inf" }, 3.0 , None ,
162
- Exemplar ({"a" : "1234567890123456789012345678901234567890123456789012345678 " }, 4 ,
162
+ Exemplar ({"a" : "2345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 " }, 4 ,
163
163
Timestamp (123 , 0 )))
164
164
self .assertEqual ([hfm ], list (families ))
165
165
@@ -694,7 +694,7 @@ def test_invalid_input(self):
694
694
('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 1 \n # EOF\n ' ),
695
695
('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 1 1 \n # EOF\n ' ),
696
696
('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # '
697
- '{a="2345678901234567890123456789012345678901234567890123456789012345 "} 1 1\n # EOF\n ' ),
697
+ '{a="23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 "} 1 1\n # EOF\n ' ),
698
698
('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 0x1p-3\n # EOF\n ' ),
699
699
('# TYPE a histogram\n a_bucket{le="+Inf"} 1 # {} 1 0x1p-3\n # EOF\n ' ),
700
700
# Exemplars on unallowed samples.
0 commit comments