TASK [cloudalchemy.prometheus : Fail when file_sd targets are not defined in scrape_configs] ***************************************************************************************************
failed: [....] (item={'key': 'node-exporter', 'value': [{'targets': ['....:9100', '....:9100', '...:9100']}]}) => {"ansible_loop_var": "item", "changed": false, "item": {"key": "node-exporter", "value": [{"targets": ["....:9100", "...:9100", "...:9100"]}]}, "msg": "Oh, snap! `node-exporter` couldn't be found in your scrape configs. Please ensure you provided all targets from prometheus_targets in prometheus_scrape_configs\n"}
What happened? Fails on assertion check for file_sd which is not in use for specific target.
Did you expect to see some different? It explicitly checks for file_sd, while I'm trying to implement consul_sd
How to reproduce it (as minimally and precisely as possible): Configure consul_sd
Environment Debian Buster
Role version: 2.15.5
Ansible version information:
Variables: