The ./modules/prometheus/files/usr/local/bin/prometheus-labs-targets script fetches the list of instances in a given project using wikitech.w.o/api.php, with region hardcoded to eqiad. This is obviously broken with neutron coming along and unsupported, we should switch to using nova API and its public readonly credentials instead.
More context from irc today with @aborrero
11:17 <arturo> godog: here is another simple example of using the nova API from python to fetch instances of a project: ./modules/openstack/files/monitor/spreadcheck.py 11:17 <arturo> client = novaclient.Client("1.1", project_id=project, **creds) 11:17 <arturo> servers = client.servers.list() 11:17 <godog> nice, seems simple enough 11:18 <godog> and I should be able to hit nova api with readonly public credentials ? 11:18 <arturo> yes 11:19 <godog> awesome, thanks arturo for your help! 11:20 <arturo> that example script loads credentials from this file: ./modules/openstack/templates/monitor/spreadcheck-tools.yaml.erb