-
Is your feature request related to a problem? Please describe. Describe the solution you'd like Describe alternatives you've considered Additional context {"level":"error","Poller":"Poller_Name","collector":"Zapi:Failover","caller":"goharvest2/cmd/collectors/zapi/collector/zapi.go:410","time":"2021-11-09T13:11:41-08:00","message":"skipped instance [datacenter-testcluster-01]: not found in cache"} Created below template
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@Hardikl Could you review this template |
Beta Was this translation helpful? Give feedback.
-
hi @jmg011 there are few mistakes in your posted yaml and I'm not 100% sure what you're trying to extract but here's a minimal example you can build from. A few comments:
With that response, the way we reference
Minimal Example
And curling to test this new collector template
|
Beta Was this translation helpful? Give feedback.
-
@cgrinds Thank you so much! I had added node instance key but at a wrong attribute layer, and it was causing error so I had removed it. I think with your explanation and examples, I understand this better now. Thank you! |
Beta Was this translation helpful? Give feedback.
-
@jmg011 are you all set on this one? If so let's close the issue |
Beta Was this translation helpful? Give feedback.
-
@cgrinds - I could make this work. We can close on this. I did not realize this was still open. |
Beta Was this translation helpful? Give feedback.
hi @jmg011 there are few mistakes in your posted yaml and I'm not 100% sure what you're trying to extract but here's a minimal example you can build from.
A few comments:
use
value_to_num
instead ofvalue_mapping
sincevalue_mapping
will be removed in the next release of Harvest (see release notes).when writing new collector templates, it's often easier to run the one collector you are developing in the foreground to quickly iterate on your changes. e.g.
bin/harvest start u2 --foreground --collectors Zapi --objects Failover
It also make it easier to read the errors, redirect the logs, spot indentation errors, etc.the
skipped instance
message means that Harvest is unable to determi…