File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -241,15 +241,14 @@ func addQueries(queriesPath string) (err error) {
241
241
queryOverrides [metric ] = query
242
242
243
243
case "metrics" :
244
+ var metric_map map [string ]ColumnMapping
245
+ metric_map = make (map [string ]ColumnMapping )
246
+
244
247
for _ , c := range value .([]interface {}) {
245
248
column := c .(map [interface {}]interface {})
246
249
247
250
for n , a := range column {
248
251
var cmap ColumnMapping
249
- var metric_map map [string ]ColumnMapping
250
-
251
- metric_map = make (map [string ]ColumnMapping )
252
-
253
252
name := n .(string )
254
253
255
254
for attr_key , attr_val := range a .(map [interface {}]interface {}) {
@@ -266,12 +265,10 @@ func addQueries(queriesPath string) (err error) {
266
265
}
267
266
268
267
cmap .mapping = nil
269
-
270
- metric_map [name ] = cmap
271
-
272
- metricMaps [metric ] = metric_map
268
+ metric_map [name ] = cmap
273
269
}
274
270
}
271
+ metricMaps [metric ] = metric_map
275
272
}
276
273
}
277
274
}
You can’t perform that action at this time.
0 commit comments