#It should work in Zapi also

1 messages · Page 1 of 1 (latest)

stoic bramble
#

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

novel harness
#

As per error,yaml is not properly indented. You need to indent this yaml

stoic bramble
#

checked with multiple online yaml validators, and the above is a valid yaml

novel harness
novel harness
#

Also it is recommended to use latest official release in case you are on a very old release.

sharp marlin
#

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?