Cleanup rabbitmq backend
diff --git a/metadata/service/server/amqp.yml b/metadata/service/server/amqp.yml
deleted file mode 100644
index 6cfce6b..0000000
--- a/metadata/service/server/amqp.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-applications:
-- statsd
-parameters:
- supervisor:
- server:
- service:
- statsd_server:
- name: server
- type: statsd
- statsd:
- server:
- enabled: true
- bind:
- port: 8125
- address: 127.0.0.1
\ No newline at end of file
diff --git a/metadata/service/server/carbon.yml b/metadata/service/server/carbon.yml
index e7e00c7..4a3e391 100644
--- a/metadata/service/server/carbon.yml
+++ b/metadata/service/server/carbon.yml
@@ -4,17 +4,11 @@
_params:
statsd_server_backend_host: localhost
statsd_server_backend_port: 2003
- supervisor:
- server:
- service:
- statsd_server:
- name: server
- type: statsd
statsd:
server:
enabled: true
bind:
- address: 127.0.0.1
+ address: 0.0.0.0
port: 8125
backend:
engine: carbon
diff --git a/metadata/service/server/rabbitmq.yml b/metadata/service/server/rabbitmq.yml
new file mode 100644
index 0000000..8c0fdc6
--- /dev/null
+++ b/metadata/service/server/rabbitmq.yml
@@ -0,0 +1,25 @@
+applications:
+- statsd
+parameters:
+ _params:
+ statsd_server_backend_host: localhost
+ statsd_server_backend_port: 5672
+ statsd_server_backend_user: metric
+ statsd_server_backend_virtual_host: 5672
+ statsd_server_backend_queue: metric
+ statsd_server_backend_exchange: metric
+ statsd:
+ server:
+ enabled: true
+ bind:
+ port: 8125
+ address: 127.0.0.1
+ backend:
+ engine: rabbitmq
+ host: ${_param:statsd_server_backend_host}
+ port: ${_param:statsd_server_backend_port}
+ user: ${_param:statsd_server_backend_user}
+ password: ${_param:statsd_server_backend_password}
+ virtual_host: ${_param:statsd_server_backend_virtual_host}
+ queue: ${_param:statsd_server_backend_queue}
+ exchange: ${_param:statsd_server_backend_exchange}