blob: 4bf2f6c72849866e73981e21d8f2c4ae51edb8e4 [file] [log] [blame]
{%- from "ceilometer/map.jinja" import server with context %}
{%- from "ceilometer/map.jinja" import agent with context %}
{%- if server.get('enabled', False) %}
{%- set publisher = server.publisher %}
{%- else %}
{%- set publisher = agent.publisher %}
{%- endif %}
---
sources:
- name: meter_source
interval: 60
meters:
- "*"
sinks:
- meter_sink
sinks:
- name: meter_sink
transformers:
publishers:
{%- for publisher_name, publisher in publisher.items() %}
{%- if publisher_name == 'default' %}
- notifier://
{%- endif %}
{%- if publisher_name == 'graphite' %}
- graphite://{{ publisher.host }}:{{ publisher.port }}
{%- endif %}
{%- endfor %}