Skip to content

Commit

Permalink
[elastic] Add config flags for shard level metrics
Browse files Browse the repository at this point in the history
Tested with test-kitchen.
  • Loading branch information
Etienne LAFARGE committed Jul 29, 2015
1 parent 448e3a9 commit 8d918bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ suites:
username: someuser
password: somepass
is_external: false
pshard_stats: true
shard_level_metrics: true
tags:
- kitchen
- sink
Expand Down
6 changes: 6 additions & 0 deletions templates/default/elastic.yaml.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
instances:
<% @instances.each do |i| -%>
- url: <%= i["url"] %>
<% unless i["shard_level_metrics"].nil? %>
shard_level_metrics: <%= i["shard_level_metrics"] %>
<% end %>
<% unless i["pshard_stats"].nil? %>
pshard_stats: <%= i["pshard_stats"] %>
<% end %>
<% unless i["is_external"].nil? %>
is_external: <%= i["is_external"] %>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
'username' => 'someuser',
'password' => 'somepass',
'is_external' => false,
'pshard_stats' => true,
'shard_level_metrics' => true,
'tags' => ['kitchen', 'sink']
}
],
Expand Down

0 comments on commit 8d918bd

Please sign in to comment.