#harvest Configuration precedence

1 messages · Page 1 of 1 (latest)

worthy jewel
#

I plan to use the "credentials_script" feature. If I put it in the configuration under "Defaults" and have others pollers with password defined, which option will precede? Example:
`Defaults:
collectors:
- Zapi
- ZapiPerf

exporters:
- prometheus

auth_style: basic_auth
username: foo_ontap

credentials_script:
path: ./get_pass

Pollers:
ontap1:
datacenter: DC1
addr: ontap1.local

ontap2:
datacenter: DC1
addr: ontap2.local

StorageGrid1:
datacenter: DC1
addr: storagegrid1.local
username: foo
password: bar
collectors:
- StorageGrid`

versed hinge
plain aspen
#

thanks for the issue @worthy jewel issue found and fixed. Will be in nightly. Can you saying more about the wording that was misleading? Happy to improve but not sure I understand which part is misleading

worthy jewel
#

"via standard in" somehow derailed me. Maybe it's just me. 😁

plain aspen
#

Is this clearer?

Harvest will call the script with two arguments like so: ./script $addr $username. The first argument is the address of the cluster taken from your harvest.yaml file. The second argument is the username of the cluster.

worthy jewel
#

Yes, thank you