Skip to content

Commit

Permalink
add support for filter and rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
shaylang committed Jan 15, 2015
1 parent 1390248 commit d136631
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
default['anodot']['token'] = "<YOUR ANODOT TOKEN>"
default['anodot']['loglevel'] = "error"
default['anodot']['showStats'] = false
default['anodot']['sendStats'] = true
default['anodot']['plainPort'] = 2003
default['anodot']['picklePort'] = 2004
default['anodot']['flushInterval'] = 5000
default['anodot']['metricFilter'] = ""
default['anodot']['metricRewrite'] = []
7 changes: 5 additions & 2 deletions templates/default/config.json.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"token": "<%= node['anodot']['token'] %>",
"log": "<%= node['anodot']['loglevel'] %>",
"showStats": <%= node['anodot']['showStats'] %>,
"sendStats": <%= node['anodot']['sendStats'] %>,
"plainPort": <%= node['anodot']['plainPort']%>,
"picklePort": <%= node['anodot']['picklePort']%>,
"flushInterval": <%= node['anodot']['flushInterval']%>
}
"flushInterval": <%= node['anodot']['flushInterval']%>,
"metricFilter": "<%= node['anodot']['metricFilter']%>",
"metricRewrite": <%= node['anodot']['metricRewrite']%>
}

0 comments on commit d136631

Please sign in to comment.