blob: 242e4be189a35e6882b5b53d761669cffd6b45b2 [file] [log] [blame]
{%- from "linux/map.jinja" import system with context %}
{%- set backend = salt['pillar.get']('collectd:client:backend:'+backend_name) %}
LoadPlugin amqp
<Plugin "amqp">
<Publish "graphite">
Host "{{ backend.host }}"
Port "{{ backend.port }}"
VHost "{{ backend.virtual_host }}"
User "{{ backend.user }}"
Password "{{ backend.password }}"
Exchange "metrics"
# ExchangeType "amq.topic"
# RoutingKey "metrics"
Persistent true
Format "Graphite"
GraphitePrefix "{{ system.get('cluster', 'prd') }}_{{ system.get('environment', 'prd') }}."
StoreRates false
</Publish>
</Plugin>