Using global method and headers for http_poller multiple urls

method and headers are per-URL options, so the structure should be

http_poller {
	urls => {
		gff => {
            url => "http://bitbucket.serv.cdc.fr/rest/api/latest/projects/GFF/repos/?limit=1000"
			method => "GET"
			headers => {
				Accept => "application/json"
				Authorization => "Bearer ${BITBUCKET_TOKEN}"
			}
        }

etc. And yes, that requires repitition of the headers.

1 Like