File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,9 @@ fn families_to_json_events(families: &[MetricFamily]) -> Vec<VectorEvent<'_>> {
97
97
let mut counts = Vec :: new ( ) ;
98
98
let mut last_cumulative_count = 0 ;
99
99
for bucket in histogram. get_bucket ( ) {
100
- buckets. push ( bucket. get_upper_bound ( ) ) ;
101
- counts. push ( bucket. get_cumulative_count ( ) - last_cumulative_count) ;
102
- last_cumulative_count = bucket. get_cumulative_count ( ) ;
100
+ buckets. push ( bucket. upper_bound ( ) ) ;
101
+ counts. push ( bucket. cumulative_count ( ) - last_cumulative_count) ;
102
+ last_cumulative_count = bucket. cumulative_count ( ) ;
103
103
}
104
104
105
105
VectorMetricData :: AggregatedHistogram {
@@ -117,11 +117,11 @@ fn families_to_json_events(families: &[MetricFamily]) -> Vec<VectorEvent<'_>> {
117
117
metric : VectorMetric {
118
118
data,
119
119
kind : "absolute" ,
120
- name : family. get_name ( ) ,
120
+ name : family. name ( ) ,
121
121
tags : metric
122
122
. get_label ( )
123
123
. iter ( )
124
- . map ( |p| ( p. get_name ( ) , p. get_value ( ) ) )
124
+ . map ( |p| ( p. name ( ) , p. value ( ) ) )
125
125
. collect ( ) ,
126
126
} ,
127
127
} ) ;
You can’t perform that action at this time.
0 commit comments