Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes-Bug: #1451527 - Provision Ceilometer using Smgr
Patch 1: - New contrail param - enable_ceilometer - /etc/ceilometer/ceilometer.conf correctly configured on openstack & compute nodes - Mongodb installed on database nodes Patch 2: - Review comments on Patch 1 - Moved database mongodb setup to new file: contrail:profile:mongodb Patch 3: - Configured all remaining files except keystone (bug) and pipeline.yaml Patch 4: - Mongo DB Replset configured and setup - Ceilometer Pipeline.yaml has been templated - Keystone notification driver change needs Rabbit MQ to be provisioned before Keystone - Have filed separate bug for above Patch 5: - Implemented review comments - Final commit - Tested on non-HA with/without Ceilometer + HA without Ceilometer Change-Id: I321305ee1140546ebea8a818ca5bfba426e0c21d
- Loading branch information
nitishkrishna
committed
Jun 8, 2015
1 parent
9cbb8c6
commit a72aa34
Showing
16 changed files
with
416 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
contrail/environment/modules/ceilometer/templates/pipeline.yaml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
sources: | ||
- name: meter_source | ||
interval: 600 | ||
meters: | ||
- "*" | ||
sinks: | ||
- meter_sink | ||
- name: cpu_source | ||
interval: 600 | ||
meters: | ||
- "cpu" | ||
sinks: | ||
- cpu_sink | ||
- name: disk_source | ||
interval: 600 | ||
meters: | ||
- "disk.read.bytes" | ||
- "disk.read.requests" | ||
- "disk.write.bytes" | ||
- "disk.write.requests" | ||
sinks: | ||
- disk_sink | ||
- name: network_source | ||
interval: 600 | ||
meters: | ||
- "network.incoming.bytes" | ||
- "network.incoming.packets" | ||
- "network.outgoing.bytes" | ||
- "network.outgoing.packets" | ||
sinks: | ||
- network_sink | ||
- name: contrail_source | ||
interval: 600 | ||
meters: | ||
- "ip.floating.receive.packets" | ||
- "ip.floating.transmit.packets" | ||
- "ip.floating.receive.bytes" | ||
- "ip.floating.transmit.bytes" | ||
resources: | ||
- contrail://<%= @analytics_node_ip %>:8081 | ||
sinks: | ||
- contrail_sink | ||
sinks: | ||
- name: meter_sink | ||
transformers: | ||
publishers: | ||
- notifier:// | ||
- name: cpu_sink | ||
transformers: | ||
- name: "rate_of_change" | ||
parameters: | ||
target: | ||
name: "cpu_util" | ||
unit: "%" | ||
type: "gauge" | ||
scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))" | ||
publishers: | ||
- notifier:// | ||
- name: disk_sink | ||
transformers: | ||
- name: "rate_of_change" | ||
parameters: | ||
source: | ||
map_from: | ||
name: "disk\\.(read|write)\\.(bytes|requests)" | ||
unit: "(B|request)" | ||
target: | ||
map_to: | ||
name: "disk.\\1.\\2.rate" | ||
unit: "\\1/s" | ||
type: "gauge" | ||
publishers: | ||
- notifier:// | ||
- name: network_sink | ||
transformers: | ||
- name: "rate_of_change" | ||
parameters: | ||
source: | ||
map_from: | ||
name: "network\\.(incoming|outgoing)\\.(bytes|packets)" | ||
unit: "(B|packet)" | ||
target: | ||
map_to: | ||
name: "network.\\1.\\2.rate" | ||
unit: "\\1/s" | ||
type: "gauge" | ||
publishers: | ||
- notifier:// | ||
- name: contrail_sink | ||
publishers: | ||
- rpc:// | ||
transformers: |
23 changes: 23 additions & 0 deletions
23
contrail/environment/modules/contrail/manifests/ceilometer/agent/auth.pp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# == Class: contrail::ceilometer::agent::auth | ||
# The puppet module to set up contrail::profile::openstack::ceilometer agent authentication parameters | ||
# | ||
# | ||
class contrail::ceilometer::agent::auth { | ||
|
||
# Using hiera function as inheriting contrail::config failed | ||
$controller_address_management = hiera(openstack::controller::address::management) | ||
$ceilometer_password = hiera(openstack::ceilometer::password) | ||
|
||
$auth_url = "http://${controller_address_management}:5000/v2.0" | ||
$auth_password = $ceilometer_password | ||
$auth_tenant_name = "service" | ||
$auth_username = "ceilometer" | ||
|
||
class { '::ceilometer::agent::auth': | ||
auth_url => $auth_url, | ||
auth_password => $auth_password, | ||
auth_tenant_name => $auth_tenant_name, | ||
auth_user => $auth_username, | ||
} | ||
notify { "contrail::ceilometer::agent::auth - auth_url = $::ceilometer::agent::auth::auth_url":; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.