Skip to content

Commit

Permalink
Merge pull request #2089 from aagate/add-polling-section
Browse files Browse the repository at this point in the history
ceilometer: add a polling section in ceilometer conf (SCRD-8720)
  • Loading branch information
witekest committed Apr 9, 2019
2 parents d22fbaf + eeee6ad commit a671c04
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
12 changes: 12 additions & 0 deletions chef/cookbooks/ceilometer/recipes/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@
end
end

template "/etc/ceilometer/polling_pipeline.yaml" do
source "polling_pipeline.yaml.erb"
owner "root"
group "root"
mode "0644"
variables(
swift_interval: node[:ceilometer][:swift_interval],
monasca_api_url: monasca_api_url
)
notifies :restart, "service[swift-proxy]" if is_swift_proxy
end

template "/etc/ceilometer/event_pipeline.yaml" do
source "event_pipeline.yaml.erb"
owner "root"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ interface = internalURL
auth_type = password
auth_url = <%= @keystone_settings['internal_auth_url'] %>
project_name = <%= @monasca_project %>
default_domain_id = <%= @keystone_settings["admin_domain_id"] %>
default_domain_name = <%= @keystone_settings["admin_domain"] %>
username = <%= @keystone_settings['service_user'] %>
password = <%= @keystone_settings['service_password'] %>
user_domain_name = <%= @keystone_settings["admin_domain"] %>
project_domain_name = <%= @keystone_settings["admin_domain"]%>

[service_types]
neutron_lbaas_version = v2
Expand Down Expand Up @@ -105,3 +105,6 @@ service_region_name= <%= @keystone_settings['endpoint_region'] %>

[publisher_notifier]
metering_topic=metering

[polling]
cfg_file=/etc/ceilometer/polling_pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
sources:
- name: swift_source
interval: <%= @swift_interval %>
meters:
- "storage.objects"
- "storage.objects.size"
- "storage.objects.containers"
sinks:
- meter_sink
sinks:
- name: meter_sink
transformers:
publishers:
- monasca://<%= @monasca_api_url %>

0 comments on commit a671c04

Please sign in to comment.