Skip to content

Commit

Permalink
Agent log dir (#33)
Browse files Browse the repository at this point in the history
* Register monasca endpoints in Keystone

* Fix kibana url

* Rearrange helper functions

* Make agent log dir configurable
  • Loading branch information
samirjorina committed Mar 30, 2017
1 parent c6618e3 commit bdbacc8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<% if @agent_settings["system_only"] -%> --system_only <% end -%> \
<% if @agent_settings["overwrite_config"] -%> --overwrite <% end -%> \
<% if @agent_settings["ca_file"].length > 0 -%> --ca_file '<%= @agent_settings["ca_file"] %>' <% end -%> \
--log_dir '<%= @agent_settings["log_dir"] %>' \
--log_level '<%= @agent_settings["log_level"] %>' \
--monasca_statsd_port '<%= @agent_settings["statsd_port"].to_i %>' \
--check_frequency '<%= @agent_settings["check_frequency"].to_i %>' \
Expand Down
1 change: 1 addition & 0 deletions chef/data_bags/crowbar/template-monasca.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"system_only": false,
"overwrite_config": false,
"ca_file": "",
"log_dir": "/var/log/monasca-agent/",
"log_level": "INFO",
"statsd_port": 8125,
"check_frequency": 15,
Expand Down
1 change: 1 addition & 0 deletions chef/data_bags/crowbar/template-monasca.schema
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"system_only": { "type": "bool", "required": true },
"overwrite_config": { "type": "bool", "required": true },
"ca_file": { "type": "str", "required": true },
"log_dir": { "type": "str", "required": true },
"log_level": { "type": "str", "required": true },
"statsd_port": { "type": "int", "required": true },
"check_frequency": { "type": "int", "required": true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
= t(".metric_agent_header")

= boolean_field %w(metric_agent system_only)
= string_field %w(metric_agent log_dir)
= select_field %w(metric_agent log_level), :collection => :log_levels
= integer_field %w(metric_agent statsd_port)
= integer_field %w(metric_agent check_frequency)
Expand Down
1 change: 1 addition & 0 deletions crowbar_framework/config/locales/monasca/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ en:
system_only: 'Setting to true will cause Monasca setup to run in `system_only` mode only, configure the base config and system metrics (cpu, disk, load, memory, network)'
insecure: 'Do you want insecure connection?'
ca_file: 'Sets the path to the ca certs file if using certificates. Required only if insecure is set to False (ca_file)'
log_dir: 'Log directory'
log_level: 'Log level'
statsd_port: 'Monasca Statsd port'
check_frequency: 'Time to wait between collection runs (check_frequency)'
Expand Down

0 comments on commit bdbacc8

Please sign in to comment.