Fix the definition of the remote_collector service
This change removes unneeded plugins and adds the ones that are
otherwise required.
diff --git a/heka/meta/heka.yml b/heka/meta/heka.yml
index a6e8568..fbd847a 100644
--- a/heka/meta/heka.yml
+++ b/heka/meta/heka.yml
@@ -97,16 +97,42 @@
port: 4353
ticker_interval: 30
remote_collector:
+ decoder:
+ collectd:
+ engine: sandbox
+ module_file: /usr/share/lma_collector/decoders/collectd.lua
+ module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
+ config:
+ hostname: '{{ grains.host }}'
+ input:
+ heka_collectd:
+ engine: http
+ address: 127.0.0.1
+ port: 8326
+ decoder: collectd_decoder
+ splitter: NullSplitter
+ filter:
+ influxdb_accumulator:
+ engine: sandbox
+ module_file: /usr/share/lma_collector/filters/influxdb_accumulator.lua
+ module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
+ preserve_data: false
+ message_matcher: "Type =~ /metric$/"
+ ticker_interval: 1
+ config:
+ tag_fields: "deployment_id environment_label tenant_id user_id"
+ time_precision: "{{ server.influxdb_time_precision }}"
+ encoder:
+ influxdb:
+ engine: payload
+ append_newlines: false
+ prefix_ts: false
output:
- metric_collector:
- engine: tcp
- host: 127.0.0.1
- port: 5567
remote_collector_dashboard:
engine: dashboard
host: 127.0.0.1
port: 4354
- ticker_interval: 30
+ ticker_interval: 30
aggregator:
input:
heka_metric:
diff --git a/metadata/service/remote_collector/single.yml b/metadata/service/remote_collector/single.yml
index d0b6420..e141799 100644
--- a/metadata/service/remote_collector/single.yml
+++ b/metadata/service/remote_collector/single.yml
@@ -6,3 +6,4 @@
heka:
remote_collector:
enabled: true
+ influxdb_time_precision: ms