#It should work in Zapi also
1 messages · Page 1 of 1 (latest)
this is my volume.yaml
name: Volume
query: volume
object: volume
instance_key: uuid
counters:
- instance_uuid
- instance_name
- vserver_name => svm
- node_name => node
- parent_aggr => aggr
- read_data
- write_data
- read_ops
- write_ops
- other_ops
- total_ops
- read_latency
- write_latency
- other_latency
- avg_latency
plugins:
- Volume
- MetricAgent:
compute_metric:
- total_throughput ADD read_data write_data
export_options:
instance_keys:
this is the error :
{"level":"error","Poller":"cluster-01","collector":"ZapiPerf:Volume","error":"invalid indentation, line: 28","caller":"goharvest2/cmd/collectors/zapi/collector/zapi.go:107","time":"2022-09-22T21:07:59+05:30","message":"Error importing subtemplate: volume.yaml"}
{"level":"warn","Poller":"cluster-01","caller":"./poller.go:613","time":"2022-09-22T21:07:59+05:30","message":"init collector-object (ZapiPerf:Volume): invalid indentation, line: 28"}
I'm not sure what is going wrong here
As per error,yaml is not properly indented. You need to indent this yaml
checked with multiple online yaml validators, and the above is a valid yaml
Okay. Could you file a issue https://github.com/NetApp/harvest/issues with this yaml and we'll check.
I have taken the yaml from here and tried and it works fine for me. You can try this one and see
https://gist.github.com/rahulguptajss/532b8a4a1a225b00934abcc193fc10e1
Also it is recommended to use latest official release in case you are on a very old release.
yes, @stoic bramble I think you're on a version of Harvest that's a year old. Perhaps you picked 21.08 when you meant to pick 22.08?