memcache2graphite 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/memcache2graphite +2 -2
  2. data/conf.yml +2 -1
  3. metadata +1 -1
@@ -44,7 +44,7 @@ def collect(conf, memcache, graphite, state)
44
44
  type = metrics_filter[metric]
45
45
  to_send = aggregate(metric, value, type, state)
46
46
  if to_send
47
- message["#{conf["graphite"]["root-path"].gsub(/<type>/,type)}.#{metrics_filter[metric]}.#{metric}"] = value
47
+ message[conf["graphite"]["path"].gsub(/<type>/,type).gsub(/<metric>/,metric)] = value
48
48
  end
49
49
  end
50
50
  end
@@ -63,7 +63,7 @@ end
63
63
  Daemons.run_proc(conf.fetch("daemon_name", "memcache2graphite"),
64
64
  {
65
65
  :ontop => !conf["daemon_name"],
66
- :dir_mode => :system,
66
+ :dir_mode => :normal,
67
67
  :log_dir => conf["log_dir"],
68
68
  :log_output => true,
69
69
  :dir => conf["pid_dir"]
data/conf.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  freq : 1
2
2
  daemon_name : memcache2graphite_daemon
3
- log_dir : /var/log/
3
+ log_dir : /var/log/memcache2graphite/
4
+ pid_dir : /var/run/memcache2graphite/
4
5
  graphite :
5
6
  root-path : toto.memcache.my_bucket.<type>.debian-sf
6
7
  host : localhost
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcache2graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: