Created
October 8, 2015 10:57
-
-
Save hryamzik/54e21dafe4a7cdfb4433 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| search_index: /srv/graphite/index | |
| finders: | |
| - cyanite.CyaniteFinder | |
| cyanite: | |
| urls: | |
| {% for host in groups[cyanite_hosts_group] %} | |
| {% set j_proto = 'https' if hostvars[host].cyanite_https is defined and hostvars[host].cyanite_https else 'http' %} | |
| {% set j_port = hostvars[host].cyanite_api_port|default(default_cyanite_api_port) %} | |
| {% if hostvars[host]['cyanite_access_by_inventory_hostname_not_ip'] is defined and hostvars[host]['cyanite_access_by_inventory_hostname_not_ip'] %} | |
| {% set j_addr = hostvars[host]['inventory_hostname'] %} | |
| {% else %} | |
| {% set j_if = hostvars[host].cyanite_if|default(default_cyanite_if) %} | |
| {% set j_addr = hostvars[host]['ansible_' + j_if]['ipv4']['address']|default('127.0.0.1') %} | |
| {% endif %} | |
| - {{ j_proto }}://{{ j_addr }}:{{ j_port }} | |
| {% endfor %} | |
| logging: | |
| version: 1 | |
| disable_existing_loggers: true | |
| handlers: | |
| file: | |
| class: logging.FileHandler | |
| filename: /var/log/graphite-api.log | |
| loggers: | |
| graphite_api: | |
| handlers: | |
| - file | |
| propagate: true | |
| level: DEBUG | |
| root: | |
| handlers: | |
| - file | |
| propagate: true | |
| level: DEBUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment