Initial commit
This commit is contained in:
commit
a87b471ae4
|
@ -0,0 +1,6 @@
|
|||
ceilometer formula
|
||||
==================
|
||||
|
||||
0.0.1 (2015-08-03)
|
||||
|
||||
- Initial formula setup
|
|
@ -0,0 +1,13 @@
|
|||
Copyright (c) 2014-2015 tcp cloud a. s.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -0,0 +1,119 @@
|
|||
|
||||
==========
|
||||
Ceilometer
|
||||
==========
|
||||
|
||||
The ceilometer project aims to deliver a unique point of contact for billing systems to acquire all of the measurements they need to establish customer billing, across all current OpenStack core components with work underway to support future OpenStack components.
|
||||
|
||||
Sample pillars
|
||||
==============
|
||||
|
||||
Ceilometer API/controller node
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
ceilometer:
|
||||
server:
|
||||
enabled: true
|
||||
version: havana
|
||||
cluster: true
|
||||
secret: pwd
|
||||
bind:
|
||||
host: 127.0.0.1
|
||||
port: 8777
|
||||
identity:
|
||||
engine: keystone
|
||||
host: 127.0.0.1
|
||||
port: 35357
|
||||
tenant: service
|
||||
user: ceilometer
|
||||
password: pwd
|
||||
message_queue:
|
||||
engine: rabbitmq
|
||||
host: 127.0.0.1
|
||||
port: 5672
|
||||
user: openstack
|
||||
password: pwd
|
||||
virtual_host: '/openstack'
|
||||
rabbit_ha_queues: true
|
||||
database:
|
||||
engine: mongodb
|
||||
host: 127.0.0.1
|
||||
port: 27017
|
||||
name: ceilometer
|
||||
user: ceilometer
|
||||
password: pwd
|
||||
|
||||
Ceilometer Graphite publisher
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
ceilometer:
|
||||
server:
|
||||
enabled: true
|
||||
publisher:
|
||||
graphite:
|
||||
enabled: true
|
||||
host: 10.0.0.1
|
||||
port: 2003
|
||||
|
||||
Ceilometer compute agent
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
ceilometer:
|
||||
agent:
|
||||
enabled: true
|
||||
version: havana
|
||||
secret: pwd
|
||||
identity:
|
||||
engine: keystone
|
||||
host: 127.0.0.1
|
||||
port: 35357
|
||||
tenant: service
|
||||
user: ceilometer
|
||||
password: pwd
|
||||
message_queue:
|
||||
engine: rabbitmq
|
||||
host: 127.0.0.1
|
||||
port: 5672
|
||||
user: openstack
|
||||
password: pwd
|
||||
virtual_host: '/openstack'
|
||||
rabbit_ha_queues: true
|
||||
|
||||
Read more
|
||||
=========
|
||||
|
||||
* https://wiki.openstack.org/wiki/Ceilometer
|
||||
* http://docs.openstack.org/developer/ceilometer/install/manual.html
|
||||
* http://docs.openstack.org/developer/ceilometer/
|
||||
* https://fedoraproject.org/wiki/QA:Testcase_OpenStack_ceilometer_install
|
||||
* https://github.com/spilgames/ceilometer_graphite_publisher
|
||||
* http://engineering.spilgames.com/using-ceilometer-graphite/
|
||||
|
||||
Things to improve/consider
|
||||
==========================
|
||||
|
||||
* Graphite publisher http://engineering.spilgames.com/using-ceilometer-graphite/
|
||||
* Juno additions - Split Events/Meters and Alarms databases, Polling angets are HA now, active/Activr Workload partitioning to central agents
|
||||
* Kilo additions - Splint Events - Meters - Agents, notification agents are HA now (everything is HA now), events - elastic search
|
||||
* User notifier publisher vs rpc publisher (Juno+)
|
||||
* Enable jittering (rendom delay) to polling. (Kilo+)
|
||||
* Collect what you need - pipeline.yaml, tweak polling interval (Icehouse+)
|
||||
* add more agents as load inceases (Juno+)
|
||||
* Avoid open-ended queries - query on a time range
|
||||
* Install api behind mod_wsgi, tweak wsgi daemon - threads and processes
|
||||
* Set TTL - expire data to minimise database size
|
||||
* Run Mongodb on separate node - use sharding and replica-sets
|
||||
|
||||
Deployment scenarios
|
||||
--------------------
|
||||
|
||||
* Lambda design - use short term and long term databases in the same time
|
||||
* Data segragation - separatem
|
||||
* JSON files - Apache spark
|
||||
* Fraud detection - proprietary alarming system
|
||||
* Custom consumers - kafka - Apache Storm (kilo+)
|
||||
* Debugging - Collecttions - Elastic serach - Kibana
|
||||
* Noisy services - Multiple notification buses
|
|
@ -0,0 +1,43 @@
|
|||
{%- from "ceilometer/map.jinja" import agent with context %}
|
||||
{%- if agent.enabled %}
|
||||
|
||||
ceilometer_agent_packages:
|
||||
pkg.installed:
|
||||
- names: {{ agent.pkgs }}
|
||||
|
||||
/etc/ceilometer/ceilometer.conf:
|
||||
file.managed:
|
||||
- source: salt://ceilometer/files/{{ agent.version }}/ceilometer-agent.conf.{{ grains.os_family }}
|
||||
- template: jinja
|
||||
- require:
|
||||
- pkg: ceilometer_agent_packages
|
||||
|
||||
{%- for publisher_name, publisher in agent.get('publisher', {}).iteritems() %}
|
||||
|
||||
{%- if publisher_name != "default" %}
|
||||
|
||||
ceilometer_publisher_{{ publisher_name }}_pkg:
|
||||
pkg.latest:
|
||||
- name: ceilometer-publisher-{{ publisher_name }}
|
||||
|
||||
{%- endif %}
|
||||
|
||||
{%- endfor %}
|
||||
|
||||
/etc/ceilometer/pipeline.yaml:
|
||||
file.managed:
|
||||
- source: salt://ceilometer/files/{{ agent.version }}/pipeline.yaml
|
||||
- template: jinja
|
||||
- require:
|
||||
- pkg: ceilometer_agent_packages
|
||||
|
||||
|
||||
ceilometer_agent_services:
|
||||
service.running:
|
||||
- names: {{ agent.services }}
|
||||
- enable: true
|
||||
- watch:
|
||||
- file: /etc/ceilometer/ceilometer.conf
|
||||
- file: /etc/ceilometer/pipeline.yaml
|
||||
|
||||
{%- endif %}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,113 @@
|
|||
{%- from "ceilometer/map.jinja" import server with context %}
|
||||
{%- from "ceilometer/map.jinja" import agent with context %}
|
||||
{%- if server.get('enabled', False) %}
|
||||
{%- set publisher = server.publisher %}
|
||||
{%- else %}
|
||||
{%- set publisher = agent.publisher %}
|
||||
{%- endif %}
|
||||
---
|
||||
sources:
|
||||
- name: meter_source
|
||||
interval: 600
|
||||
meters:
|
||||
- "*"
|
||||
sinks:
|
||||
- meter_sink
|
||||
- name: cpu_source
|
||||
interval: 60
|
||||
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
|
||||
sinks:
|
||||
- name: meter_sink
|
||||
transformers:
|
||||
publishers:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
- 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:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
- 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:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
- 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:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
|
@ -0,0 +1,518 @@
|
|||
{%- from "ceilometer/map.jinja" import agent with context %}
|
||||
[DEFAULT]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Print debugging output (set logging level to DEBUG instead
|
||||
# of default WARNING level). (boolean value)
|
||||
#debug=false
|
||||
debug=False
|
||||
|
||||
# Print more verbose output (set logging level to INFO instead
|
||||
# of default WARNING level). (boolean value)
|
||||
#verbose=false
|
||||
verbose=True
|
||||
# Size of RPC connection pool. (integer value)
|
||||
#rpc_conn_pool_size = 30
|
||||
|
||||
auth_strategy = keystone
|
||||
|
||||
# ZeroMQ bind address. Should be a wildcard (*), an ethernet
|
||||
# interface, or IP. The "host" option should point or resolve to this
|
||||
# address. (string value)
|
||||
#rpc_zmq_bind_address = *
|
||||
|
||||
# MatchMaker driver. (string value)
|
||||
#rpc_zmq_matchmaker = local
|
||||
|
||||
# ZeroMQ receiver listening port. (integer value)
|
||||
#rpc_zmq_port = 9501
|
||||
|
||||
# Number of ZeroMQ contexts, defaults to 1. (integer value)
|
||||
#rpc_zmq_contexts = 1
|
||||
|
||||
# Maximum number of ingress messages to locally buffer per topic.
|
||||
# Default is unlimited. (integer value)
|
||||
#rpc_zmq_topic_backlog = <None>
|
||||
|
||||
# Directory for holding IPC sockets. (string value)
|
||||
#rpc_zmq_ipc_dir = /var/run/openstack
|
||||
|
||||
# Name of this node. Must be a valid hostname, FQDN, or IP address.
|
||||
# Must match "host" option, if running Nova. (string value)
|
||||
#rpc_zmq_host = localhost
|
||||
|
||||
# Seconds to wait before a cast expires (TTL). Only supported by
|
||||
# impl_zmq. (integer value)
|
||||
#rpc_cast_timeout = 30
|
||||
|
||||
# Heartbeat frequency. (integer value)
|
||||
#matchmaker_heartbeat_freq = 300
|
||||
|
||||
# Heartbeat time-to-live. (integer value)
|
||||
#matchmaker_heartbeat_ttl = 600
|
||||
|
||||
# Size of RPC thread pool. (integer value)
|
||||
#rpc_thread_pool_size = 64
|
||||
{%- if agent.message_queue.rpc_thread_pool_size is defined %}
|
||||
rpc_thread_pool_size = {{ agent.message_queue.rpc_thread_pool_size }}
|
||||
{%- endif %}
|
||||
|
||||
# Driver or drivers to handle sending notifications. (multi valued)
|
||||
#notification_driver =
|
||||
|
||||
# AMQP topic used for OpenStack notifications. (list value)
|
||||
# Deprecated group/name - [rpc_notifier2]/topics
|
||||
#notification_topics = notifications
|
||||
notification_topics=notifications
|
||||
|
||||
# Seconds to wait for a response from a call. (integer value)
|
||||
#rpc_response_timeout = 60
|
||||
|
||||
# A URL representing the messaging driver to use and its full
|
||||
# configuration. If not set, we fall back to the rpc_backend option
|
||||
# and driver specific configuration. (string value)
|
||||
#transport_url = <None>
|
||||
|
||||
# The messaging driver to use, defaults to rabbit. Other drivers
|
||||
# include qpid and zmq. (string value)
|
||||
#rpc_backend = rabbit
|
||||
rpc_backend = rabbit
|
||||
|
||||
# The default exchange under which topics are scoped. May be
|
||||
# overridden by an exchange name specified in the transport_url
|
||||
# option. (string value)
|
||||
#control_exchange = openstack
|
||||
|
||||
[database]
|
||||
|
||||
#
|
||||
# From oslo.db
|
||||
#
|
||||
|
||||
# The file name to use with SQLite. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/sqlite_db
|
||||
#sqlite_db = oslo.sqlite
|
||||
|
||||
# If True, SQLite uses synchronous mode. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/sqlite_synchronous
|
||||
#sqlite_synchronous = true
|
||||
|
||||
# The back end to use for the database. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/db_backend
|
||||
#backend = sqlalchemy
|
||||
|
||||
# The SQLAlchemy connection string to use to connect to the database.
|
||||
# (string value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_connection
|
||||
# Deprecated group/name - [DATABASE]/sql_connection
|
||||
# Deprecated group/name - [sql]/connection
|
||||
#connection = <None>
|
||||
|
||||
# The SQLAlchemy connection string to use to connect to the slave
|
||||
# database. (string value)
|
||||
#slave_connection = <None>
|
||||
|
||||
# The SQL mode to be used for MySQL sessions. This option, including
|
||||
# the default, overrides any server-set SQL mode. To use whatever SQL
|
||||
# mode is set by the server configuration, set this to no value.
|
||||
# Example: mysql_sql_mode= (string value)
|
||||
#mysql_sql_mode = TRADITIONAL
|
||||
|
||||
# Timeout before idle SQL connections are reaped. (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_idle_timeout
|
||||
# Deprecated group/name - [DATABASE]/sql_idle_timeout
|
||||
# Deprecated group/name - [sql]/idle_timeout
|
||||
#idle_timeout = 3600
|
||||
|
||||
# Minimum number of SQL connections to keep open in a pool. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_min_pool_size
|
||||
# Deprecated group/name - [DATABASE]/sql_min_pool_size
|
||||
#min_pool_size = 1
|
||||
|
||||
# Maximum number of SQL connections to keep open in a pool. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_max_pool_size
|
||||
# Deprecated group/name - [DATABASE]/sql_max_pool_size
|
||||
#max_pool_size = <None>
|
||||
|
||||
# Maximum number of database connection retries during startup. Set to
|
||||
# -1 to specify an infinite retry count. (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_max_retries
|
||||
# Deprecated group/name - [DATABASE]/sql_max_retries
|
||||
#max_retries = 10
|
||||
|
||||
# Interval between retries of opening a SQL connection. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_retry_interval
|
||||
# Deprecated group/name - [DATABASE]/reconnect_interval
|
||||
#retry_interval = 10
|
||||
|
||||
# If set, use this value for max_overflow with SQLAlchemy. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_max_overflow
|
||||
# Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow
|
||||
#max_overflow = <None>
|
||||
|
||||
# Verbosity of SQL debugging information: 0=None, 100=Everything.
|
||||
# (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_connection_debug
|
||||
#connection_debug = 0
|
||||
|
||||
# Add Python stack traces to SQL as comment strings. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_connection_trace
|
||||
#connection_trace = false
|
||||
|
||||
# If set, use this value for pool_timeout with SQLAlchemy. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
|
||||
#pool_timeout = <None>
|
||||
|
||||
# Enable the experimental use of database reconnect on connection
|
||||
# lost. (boolean value)
|
||||
#use_db_reconnect = false
|
||||
|
||||
# Seconds between retries of a database transaction. (integer value)
|
||||
#db_retry_interval = 1
|
||||
|
||||
# If True, increases the interval between retries of a database
|
||||
# operation up to db_max_retry_interval. (boolean value)
|
||||
#db_inc_retry_interval = true
|
||||
|
||||
# If db_inc_retry_interval is set, the maximum seconds between retries
|
||||
# of a database operation. (integer value)
|
||||
#db_max_retry_interval = 10
|
||||
|
||||
# Maximum retries in case of connection error or deadlock error before
|
||||
# error is raised. Set to -1 to specify an infinite retry count.
|
||||
# (integer value)
|
||||
#db_max_retries = 20
|
||||
|
||||
|
||||
[keystone_authtoken]
|
||||
|
||||
#
|
||||
# From keystonemiddleware.auth_token
|
||||
#
|
||||
|
||||
|
||||
# Service tenant name. (string value)
|
||||
#admin_tenant_name = admin
|
||||
auth_host={{ agent.identity.host }}
|
||||
|
||||
# Port of the admin Identity API endpoint (integer value)
|
||||
#auth_port=35357
|
||||
auth_port={{ agent.identity.port }}
|
||||
|
||||
# Protocol of the admin Identity API endpoint(http or https)
|
||||
# (string value)
|
||||
#auth_protocol=https
|
||||
auth_protocol=http
|
||||
|
||||
# Complete public Identity API endpoint (string value)
|
||||
#auth_uri=<None>
|
||||
auth_uri=http://{{ agent.identity.host }}:5000/
|
||||
|
||||
# Complete admin Identity API endpoint. This should specify
|
||||
# the unversioned root endpoint e.g. https://localhost:35357/
|
||||
# (string value)
|
||||
#identity_uri=<None>
|
||||
identity_uri=http://{{ agent.identity.host }}:35357
|
||||
|
||||
# API version of the admin Identity API endpoint (string
|
||||
# value)
|
||||
#auth_version=<None>
|
||||
|
||||
# Do not handle authorization requests within the middleware,
|
||||
# but delegate the authorization decision to downstream WSGI
|
||||
# components (boolean value)
|
||||
#delay_auth_decision=false
|
||||
|
||||
# Request timeout value for communicating with Identity API
|
||||
# server. (boolean value)
|
||||
#http_connect_timeout=<None>
|
||||
|
||||
# How many times are we trying to reconnect when communicating
|
||||
# with Identity API Server. (integer value)
|
||||
#http_request_max_retries=3
|
||||
|
||||
# This option is deprecated and may be removed in a future
|
||||
# release. Single shared secret with the Keystone
|
||||
# configuration used for bootstrapping a Keystone
|
||||
# installation, or otherwise bypassing the normal
|
||||
# authentication process. This option should not be used, use
|
||||
# `admin_user` and `admin_password` instead. (string value)
|
||||
#admin_token=<None>
|
||||
|
||||
# Keystone account username (string value)
|
||||
#admin_user=<None>
|
||||
admin_user={{ agent.identity.user }}
|
||||
|
||||
# Keystone account password (string value)
|
||||
#admin_password=<None>
|
||||
admin_password={{ agent.identity.password }}
|
||||
|
||||
# Keystone service account tenant name to validate user tokens
|
||||
# (string value)
|
||||
#admin_tenant_name=admin
|
||||
admin_tenant_name={{ agent.identity.tenant }}
|
||||
|
||||
[matchmaker_redis]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Host to locate redis. (string value)
|
||||
#host = 127.0.0.1
|
||||
|
||||
# Use this port to connect to redis host. (integer value)
|
||||
#port = 6379
|
||||
|
||||
# Password for Redis server (optional). (string value)
|
||||
#password = <None>
|
||||
|
||||
|
||||
[matchmaker_ring]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Matchmaker ring file (JSON). (string value)
|
||||
# Deprecated group/name - [DEFAULT]/matchmaker_ringfile
|
||||
#ringfile = /etc/oslo/matchmaker_ring.json
|
||||
|
||||
[oslo_messaging_amqp]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# address prefix used when sending to a specific server (string value)
|
||||
# Deprecated group/name - [amqp1]/server_request_prefix
|
||||
#server_request_prefix = exclusive
|
||||
|
||||
# address prefix used when broadcasting to all servers (string value)
|
||||
# Deprecated group/name - [amqp1]/broadcast_prefix
|
||||
#broadcast_prefix = broadcast
|
||||
|
||||
# address prefix when sending to any server in group (string value)
|
||||
# Deprecated group/name - [amqp1]/group_request_prefix
|
||||
#group_request_prefix = unicast
|
||||
|
||||
# Name for the AMQP container (string value)
|
||||
# Deprecated group/name - [amqp1]/container_name
|
||||
#container_name = <None>
|
||||
|
||||
# Timeout for inactive connections (in seconds) (integer value)
|
||||
# Deprecated group/name - [amqp1]/idle_timeout
|
||||
#idle_timeout = 0
|
||||
|
||||
# Debug: dump AMQP frames to stdout (boolean value)
|
||||
# Deprecated group/name - [amqp1]/trace
|
||||
#trace = false
|
||||
|
||||
# CA certificate PEM file for verifing server certificate (string
|
||||
# value)
|
||||
# Deprecated group/name - [amqp1]/ssl_ca_file
|
||||
#ssl_ca_file =
|
||||
|
||||
# Identifying certificate PEM file to present to clients (string
|
||||
# value)
|
||||
# Deprecated group/name - [amqp1]/ssl_cert_file
|
||||
#ssl_cert_file =
|
||||
|
||||
# Private key PEM file used to sign cert_file certificate (string
|
||||
# value)
|
||||
# Deprecated group/name - [amqp1]/ssl_key_file
|
||||
#ssl_key_file =
|
||||
|
||||
# Password for decrypting ssl_key_file (if encrypted) (string value)
|
||||
# Deprecated group/name - [amqp1]/ssl_key_password
|
||||
#ssl_key_password = <None>
|
||||
|
||||
# Accept clients using either SSL or plain TCP (boolean value)
|
||||
# Deprecated group/name - [amqp1]/allow_insecure_clients
|
||||
#allow_insecure_clients = false
|
||||
|
||||
|
||||
|
||||
|
||||
[oslo_messaging_rabbit]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Use durable queues in AMQP. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_durable_queues
|
||||
#amqp_durable_queues = false
|
||||
|
||||
# Auto-delete queues in AMQP. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/amqp_auto_delete
|
||||
#amqp_auto_delete = false
|
||||
|
||||
# SSL version to use (valid only if SSL enabled). Valid values are
|
||||
# TLSv1 and SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be
|
||||
# available on some distributions. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_version
|
||||
#kombu_ssl_version =
|
||||
|
||||
# SSL key file (valid only if SSL enabled). (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_keyfile
|
||||
#kombu_ssl_keyfile =
|
||||
|
||||
# SSL cert file (valid only if SSL enabled). (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_certfile
|
||||
#kombu_ssl_certfile =
|
||||
|
||||
# SSL certification authority file (valid only if SSL enabled).
|
||||
# (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_ca_certs
|
||||
#kombu_ssl_ca_certs =
|
||||
|
||||
# How long to wait before reconnecting in response to an AMQP consumer
|
||||
# cancel notification. (floating point value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_reconnect_delay
|
||||
#kombu_reconnect_delay = 1.0
|
||||
kombu_reconnect_delay = 5.0
|
||||
|
||||
# The RabbitMQ broker address where a single node is used. (string
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_host
|
||||
#rabbit_host = localhost
|
||||
rabbit_host = {{ agent.message_queue.host }}
|
||||
|
||||
# The RabbitMQ broker port where a single node is used. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_port
|
||||
#rabbit_port = 5672
|
||||
rabbit_port = {{ agent.message_queue.port }}
|
||||
|
||||
# RabbitMQ HA cluster host:port pairs. (list value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_hosts
|
||||
#rabbit_hosts = $rabbit_host:$rabbit_port
|
||||
|
||||
# Connect over SSL for RabbitMQ. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_use_ssl
|
||||
#rabbit_use_ssl = false
|
||||
|
||||
# The RabbitMQ userid. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_userid
|
||||
#rabbit_userid = guest
|
||||
rabbit_userid = {{ agent.message_queue.user }}
|
||||
|
||||
# The RabbitMQ password. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_password
|
||||
#rabbit_password = guest
|
||||
rabbit_password = {{ agent.message_queue.password }}
|
||||
|
||||
# The RabbitMQ login method. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_login_method
|
||||
#rabbit_login_method = AMQPLAIN
|
||||
|
||||
# The RabbitMQ virtual host. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_virtual_host
|
||||
#rabbit_virtual_host = /
|
||||
rabbit_virtual_host = {{ agent.message_queue.virtual_host }}
|
||||
rabbit_ha_queues={{ agent.message_queue.ha_queues }}
|
||||
|
||||
# How frequently to retry connecting with RabbitMQ. (integer value)
|
||||
#rabbit_retry_interval = 1
|
||||
|
||||
# How long to backoff for between retries when connecting to RabbitMQ.
|
||||
# (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_retry_backoff
|
||||
#rabbit_retry_backoff = 2
|
||||
|
||||
# Maximum number of RabbitMQ connection retries. Default is 0
|
||||
# (infinite retry count). (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_max_retries
|
||||
#rabbit_max_retries = 0
|
||||
|
||||
# Use HA queues in RabbitMQ (x-ha-policy: all). If you change this
|
||||
# option, you must wipe the RabbitMQ database. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_ha_queues
|
||||
#rabbit_ha_queues = false
|
||||
|
||||
# Number of seconds after which the Rabbit broker is considered down
|
||||
# if heartbeat's keep-alive fails (0 disable the heartbeat). (integer
|
||||
# value)
|
||||
#heartbeat_timeout_threshold = 60
|
||||
|
||||
# How often times during the heartbeat_timeout_threshold we check the
|
||||
# heartbeat. (integer value)
|
||||
#heartbeat_rate = 2
|
||||
|
||||
# Deprecated, use rpc_backend=kombu+memory or rpc_backend=fake
|
||||
# (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/fake_rabbit
|
||||
#fake_rabbit = false
|
||||
|
||||
[publisher]
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.publisher.utils
|
||||
#
|
||||
|
||||
# Secret value for signing metering messages. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/metering_secret
|
||||
# Deprecated group/name - [publisher_rpc]/metering_secret
|
||||
#metering_secret=change this or be hacked
|
||||
telemetry_secret={{ agent.secret }}
|
||||
|
||||
[service_credentials]
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.service
|
||||
#
|
||||
|
||||
# User name to use for OpenStack service access. (string
|
||||
# value)
|
||||
#os_username=ceilometer
|
||||
os_username={{ agent.identity.user }}
|
||||
|
||||
# Password to use for OpenStack service access. (string value)
|
||||
#os_password=admin
|
||||
os_password={{ agent.identity.password }}
|
||||
|
||||
# Tenant ID to use for OpenStack service access. (string
|
||||
# value)
|
||||
#os_tenant_id=
|
||||
|
||||
# Tenant name to use for OpenStack service access. (string
|
||||
# value)
|
||||
#os_tenant_name=admin
|
||||
os_tenant_name={{ agent.identity.tenant }}
|
||||
|
||||
# Certificate chain for SSL validation. (string value)
|
||||
#os_cacert=<None>
|
||||
|
||||
# Auth URL to use for OpenStack service access. (string value)
|
||||
#os_auth_url=http://localhost:5000/v2.0
|
||||
os_auth_url=http://{{ agent.identity.host }}:5000/v2.0
|
||||
|
||||
# Region name to use for OpenStack service endpoints. (string
|
||||
# value)
|
||||
#os_region_name=<None>
|
||||
os_region_name=RegionOne
|
||||
|
||||
# Type of endpoint in Identity service catalog to use for
|
||||
# communication with OpenStack services. (string value)
|
||||
#os_endpoint_type=publicURL
|
||||
|
||||
# Disables X.509 certificate validation when an SSL connection
|
||||
# to Identity Service is established. (boolean value)
|
||||
#insecure=false
|
||||
|
||||
{%- if agent.publisher.graphite is defined %}
|
||||
|
||||
[graphite]
|
||||
prefix = {{ agent.publisher.graphite.get('prefix', 'ceilometer') }}.
|
||||
append_hostname = true
|
||||
|
||||
{%- endif %}
|
|
@ -0,0 +1,624 @@
|
|||
{%- from "ceilometer/map.jinja" import server with context %}
|
||||
[DEFAULT]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Print debugging output (set logging level to DEBUG instead
|
||||
# of default WARNING level). (boolean value)
|
||||
#debug=false
|
||||
debug=False
|
||||
|
||||
# Print more verbose output (set logging level to INFO instead
|
||||
# of default WARNING level). (boolean value)
|
||||
#verbose=false
|
||||
verbose=True
|
||||
# Size of RPC connection pool. (integer value)
|
||||
#rpc_conn_pool_size = 30
|
||||
|
||||
auth_strategy = keystone
|
||||
|
||||
# ZeroMQ bind address. Should be a wildcard (*), an ethernet
|
||||
# interface, or IP. The "host" option should point or resolve to this
|
||||
# address. (string value)
|
||||
#rpc_zmq_bind_address = *
|
||||
|
||||
# MatchMaker driver. (string value)
|
||||
#rpc_zmq_matchmaker = local
|
||||
|
||||
# ZeroMQ receiver listening port. (integer value)
|
||||
#rpc_zmq_port = 9501
|
||||
|
||||
# Number of ZeroMQ contexts, defaults to 1. (integer value)
|
||||
#rpc_zmq_contexts = 1
|
||||
|
||||
# Maximum number of ingress messages to locally buffer per topic.
|
||||
# Default is unlimited. (integer value)
|
||||
#rpc_zmq_topic_backlog = <None>
|
||||
|
||||
# Directory for holding IPC sockets. (string value)
|
||||
#rpc_zmq_ipc_dir = /var/run/openstack
|
||||
|
||||
# Name of this node. Must be a valid hostname, FQDN, or IP address.
|
||||
# Must match "host" option, if running Nova. (string value)
|
||||
#rpc_zmq_host = localhost
|
||||
|
||||
# Seconds to wait before a cast expires (TTL). Only supported by
|
||||
# impl_zmq. (integer value)
|
||||
#rpc_cast_timeout = 30
|
||||
|
||||
# Heartbeat frequency. (integer value)
|
||||
#matchmaker_heartbeat_freq = 300
|
||||
|
||||
# Heartbeat time-to-live. (integer value)
|
||||
#matchmaker_heartbeat_ttl = 600
|
||||
|
||||
# Size of RPC thread pool. (integer value)
|
||||
#rpc_thread_pool_size = 64
|
||||
{%- if server.message_queue.rpc_thread_pool_size is defined %}
|
||||
rpc_thread_pool_size = {{ server.message_queue.rpc_thread_pool_size }}
|
||||
{%- endif %}
|
||||
|
||||
# Driver or drivers to handle sending notifications. (multi valued)
|
||||
#notification_driver =
|
||||
|
||||
# AMQP topic used for OpenStack notifications. (list value)
|
||||
# Deprecated group/name - [rpc_notifier2]/topics
|
||||
#notification_topics = notifications
|
||||
notification_topics=notifications
|
||||
|
||||
# Seconds to wait for a response from a call. (integer value)
|
||||
#rpc_response_timeout = 60
|
||||
|
||||
# A URL representing the messaging driver to use and its full
|
||||
# configuration. If not set, we fall back to the rpc_backend option
|
||||
# and driver specific configuration. (string value)
|
||||
#transport_url = <None>
|
||||
|
||||
# The messaging driver to use, defaults to rabbit. Other drivers
|
||||
# include qpid and zmq. (string value)
|
||||
#rpc_backend = rabbit
|
||||
rpc_backend = rabbit
|
||||
|
||||
# The default exchange under which topics are scoped. May be
|
||||
# overridden by an exchange name specified in the transport_url
|
||||
# option. (string value)
|
||||
#control_exchange = openstack
|
||||
|
||||
[alarm]
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.cli
|
||||
#
|
||||
|
||||
# Class to launch as alarm evaluation service. (string value)
|
||||
#evaluation_service=ceilometer.alarm.service.SingletonAlarmService
|
||||
evaluation_service=ceilometer.alarm.service.SingletonAlarmService
|
||||
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.alarm.notifier.rest
|
||||
#
|
||||
|
||||
# SSL Client certificate for REST notifier. (string value)
|
||||
#rest_notifier_certificate_file=
|
||||
|
||||
# SSL Client private key for REST notifier. (string value)
|
||||
#rest_notifier_certificate_key=
|
||||
|
||||
# Whether to verify the SSL Server certificate when calling
|
||||
# alarm action. (boolean value)
|
||||
#rest_notifier_ssl_verify=true
|
||||
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.alarm.rpc
|
||||
#
|
||||
|
||||
# The topic that ceilometer uses for alarm notifier messages.
|
||||
# (string value)
|
||||
#notifier_rpc_topic=alarm_notifier
|
||||
|
||||
# The topic that ceilometer uses for alarm partition
|
||||
# coordination messages. (string value)
|
||||
#partition_rpc_topic=alarm_partition_coordination
|
||||
partition_rpc_topic=alarm_partition_coordination
|
||||
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.alarm.service
|
||||
#
|
||||
|
||||
# Period of evaluation cycle, should be >= than configured
|
||||
# pipeline interval for collection of underlying metrics.
|
||||
# (integer value)
|
||||
# Deprecated group/name - [alarm]/threshold_evaluation_interval
|
||||
#evaluation_interval=60
|
||||
evaluation_interval=60
|
||||
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.api.controllers.v2
|
||||
#
|
||||
|
||||
# Record alarm change events. (boolean value)
|
||||
#record_history=true
|
||||
record_history=True
|
||||
|
||||
[api]
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.api
|
||||
#
|
||||
|
||||
# The port for the ceilometer API server. (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/metering_api_port
|
||||
#port=8777
|
||||
port={{ server.bind.port }}
|
||||
|
||||
# The listen IP for the ceilometer API server. (string value)
|
||||
#host=0.0.0.0
|
||||
host={{ server.bind.host }}
|
||||
|
||||
# Set it to False if your environment does not need or have
|
||||
# dns server, otherwise it will delay the response from api.
|
||||
# (boolean value)
|
||||
#enable_reverse_dns_lookup=false
|
||||
|
||||
[database]
|
||||
|
||||
#
|
||||
# From oslo.db
|
||||
#
|
||||
|
||||
# The file name to use with SQLite. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/sqlite_db
|
||||
#sqlite_db = oslo.sqlite
|
||||
|
||||
# If True, SQLite uses synchronous mode. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/sqlite_synchronous
|
||||
#sqlite_synchronous = true
|
||||
|
||||
# The back end to use for the database. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/db_backend
|
||||
#backend = sqlalchemy
|
||||
|
||||
# The SQLAlchemy connection string to use to connect to the database.
|
||||
# (string value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_connection
|
||||
# Deprecated group/name - [DATABASE]/sql_connection
|
||||
# Deprecated group/name - [sql]/connection
|
||||
#connection = <None>
|
||||
{%- if server.database.members is defined %}
|
||||
connection={{ server.database.engine }}://{{ server.database.user }}:{{ server.database.password }}@{% for member in server.database.members %}{{ member.host }}:{{ member.port }}{% if not loop.last %},{% endif %}{% endfor %}/{{ server.database.name }}
|
||||
{%- else %}
|
||||
connection={{ server.database.engine }}://{{ server.database.user }}:{{ server.database.password }}@{{ server.database.host }}:{{ server.database.port }}/{{ server.database.name }}
|
||||
{%- endif %}
|
||||
|
||||
# The SQLAlchemy connection string to use to connect to the slave
|
||||
# database. (string value)
|
||||
#slave_connection = <None>
|
||||
|
||||
# The SQL mode to be used for MySQL sessions. This option, including
|
||||
# the default, overrides any server-set SQL mode. To use whatever SQL
|
||||
# mode is set by the server configuration, set this to no value.
|
||||
# Example: mysql_sql_mode= (string value)
|
||||
#mysql_sql_mode = TRADITIONAL
|
||||
|
||||
# Timeout before idle SQL connections are reaped. (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_idle_timeout
|
||||
# Deprecated group/name - [DATABASE]/sql_idle_timeout
|
||||
# Deprecated group/name - [sql]/idle_timeout
|
||||
#idle_timeout = 3600
|
||||
|
||||
# Minimum number of SQL connections to keep open in a pool. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_min_pool_size
|
||||
# Deprecated group/name - [DATABASE]/sql_min_pool_size
|
||||
#min_pool_size = 1
|
||||
|
||||
# Maximum number of SQL connections to keep open in a pool. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_max_pool_size
|
||||
# Deprecated group/name - [DATABASE]/sql_max_pool_size
|
||||
#max_pool_size = <None>
|
||||
|
||||
# Maximum number of database connection retries during startup. Set to
|
||||
# -1 to specify an infinite retry count. (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_max_retries
|
||||
# Deprecated group/name - [DATABASE]/sql_max_retries
|
||||
#max_retries = 10
|
||||
|
||||
# Interval between retries of opening a SQL connection. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_retry_interval
|
||||
# Deprecated group/name - [DATABASE]/reconnect_interval
|
||||
#retry_interval = 10
|
||||
|
||||
# If set, use this value for max_overflow with SQLAlchemy. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_max_overflow
|
||||
# Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow
|
||||
#max_overflow = <None>
|
||||
|
||||
# Verbosity of SQL debugging information: 0=None, 100=Everything.
|
||||
# (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_connection_debug
|
||||
#connection_debug = 0
|
||||
|
||||
# Add Python stack traces to SQL as comment strings. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/sql_connection_trace
|
||||
#connection_trace = false
|
||||
|
||||
# If set, use this value for pool_timeout with SQLAlchemy. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout
|
||||
#pool_timeout = <None>
|
||||
|
||||
# Enable the experimental use of database reconnect on connection
|
||||
# lost. (boolean value)
|
||||
#use_db_reconnect = false
|
||||
|
||||
# Seconds between retries of a database transaction. (integer value)
|
||||
#db_retry_interval = 1
|
||||
|
||||
# If True, increases the interval between retries of a database
|
||||
# operation up to db_max_retry_interval. (boolean value)
|
||||
#db_inc_retry_interval = true
|
||||
|
||||
# If db_inc_retry_interval is set, the maximum seconds between retries
|
||||
# of a database operation. (integer value)
|
||||
#db_max_retry_interval = 10
|
||||
|
||||
# Maximum retries in case of connection error or deadlock error before
|
||||
# error is raised. Set to -1 to specify an infinite retry count.
|
||||
# (integer value)
|
||||
#db_max_retries = 20
|
||||
|
||||
|
||||
[keystone_authtoken]
|
||||
|
||||
#
|
||||
# From keystonemiddleware.auth_token
|
||||
#
|
||||
|
||||
|
||||
# Service tenant name. (string value)
|
||||
#admin_tenant_name = admin
|
||||
auth_host={{ server.identity.host }}
|
||||
|
||||
# Port of the admin Identity API endpoint (integer value)
|
||||
#auth_port=35357
|
||||
auth_port={{ server.identity.port }}
|
||||
|
||||
# Protocol of the admin Identity API endpoint(http or https)
|
||||
# (string value)
|
||||
#auth_protocol=https
|
||||
auth_protocol=http
|
||||
|
||||
# Complete public Identity API endpoint (string value)
|
||||
#auth_uri=<None>
|
||||
auth_uri=http://{{ server.identity.host }}:5000/
|
||||
|
||||
# Complete admin Identity API endpoint. This should specify
|
||||
# the unversioned root endpoint e.g. https://localhost:35357/
|
||||
# (string value)
|
||||
#identity_uri=<None>
|
||||
identity_uri=http://{{ server.identity.host }}:35357
|
||||
|
||||
# API version of the admin Identity API endpoint (string
|
||||
# value)
|
||||
#auth_version=<None>
|
||||
|
||||
# Do not handle authorization requests within the middleware,
|
||||
# but delegate the authorization decision to downstream WSGI
|
||||
# components (boolean value)
|
||||
#delay_auth_decision=false
|
||||
|
||||
# Request timeout value for communicating with Identity API
|
||||
# server. (boolean value)
|
||||
#http_connect_timeout=<None>
|
||||
|
||||
# How many times are we trying to reconnect when communicating
|
||||
# with Identity API Server. (integer value)
|
||||
#http_request_max_retries=3
|
||||
|
||||
# This option is deprecated and may be removed in a future
|
||||
# release. Single shared secret with the Keystone
|
||||
# configuration used for bootstrapping a Keystone
|
||||
# installation, or otherwise bypassing the normal
|
||||
# authentication process. This option should not be used, use
|
||||
# `admin_user` and `admin_password` instead. (string value)
|
||||
#admin_token=<None>
|
||||
|
||||
# Keystone account username (string value)
|
||||
#admin_user=<None>
|
||||
admin_user={{ server.identity.user }}
|
||||
|
||||
# Keystone account password (string value)
|
||||
#admin_password=<None>
|
||||
admin_password={{ server.identity.password }}
|
||||
|
||||
# Keystone service account tenant name to validate user tokens
|
||||
# (string value)
|
||||
#admin_tenant_name=admin
|
||||
admin_tenant_name={{ server.identity.tenant }}
|
||||
|
||||
[matchmaker_redis]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Host to locate redis. (string value)
|
||||
#host = 127.0.0.1
|
||||
|
||||
# Use this port to connect to redis host. (integer value)
|
||||
#port = 6379
|
||||
|
||||
# Password for Redis server (optional). (string value)
|
||||
#password = <None>
|
||||
|
||||
|
||||
[matchmaker_ring]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Matchmaker ring file (JSON). (string value)
|
||||
# Deprecated group/name - [DEFAULT]/matchmaker_ringfile
|
||||
#ringfile = /etc/oslo/matchmaker_ring.json
|
||||
|
||||
[notification]
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.notification
|
||||
#
|
||||
|
||||
# Acknowledge message when event persistence fails. (boolean
|
||||
# value)
|
||||
#ack_on_event_error=true
|
||||
ack_on_event_error=True
|
||||
|
||||
# Save event details. (boolean value)
|
||||
#store_events=false
|
||||
store_events=False
|
||||
|
||||
# Messaging URLs to listen for notifications. Example:
|
||||
# transport://user:pass@host1:port[,hostN:portN]/virtual_host
|
||||
# (DEFAULT/transport_url is used if empty) (multi valued)
|
||||
#messaging_urls=
|
||||
|
||||
|
||||
[publisher]
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.publisher.utils
|
||||
#
|
||||
|
||||
# Secret value for signing metering messages. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/metering_secret
|
||||
# Deprecated group/name - [publisher_rpc]/metering_secret
|
||||
#metering_secret=change this or be hacked
|
||||
telemetry_secret={{ server.secret }}
|
||||
|
||||
{%- for publisher_name, publisher in server.get('publisher', {}).iteritems() %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
|
||||
graphite=ceilometer.publisher.graphite:GraphitePublisher
|
||||
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
|
||||
[oslo_messaging_amqp]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# address prefix used when sending to a specific server (string value)
|
||||
# Deprecated group/name - [amqp1]/server_request_prefix
|
||||
#server_request_prefix = exclusive
|
||||
|
||||
# address prefix used when broadcasting to all servers (string value)
|
||||
# Deprecated group/name - [amqp1]/broadcast_prefix
|
||||
#broadcast_prefix = broadcast
|
||||
|
||||
# address prefix when sending to any server in group (string value)
|
||||
# Deprecated group/name - [amqp1]/group_request_prefix
|
||||
#group_request_prefix = unicast
|
||||
|
||||
# Name for the AMQP container (string value)
|
||||
# Deprecated group/name - [amqp1]/container_name
|
||||
#container_name = <None>
|
||||
|
||||
# Timeout for inactive connections (in seconds) (integer value)
|
||||
# Deprecated group/name - [amqp1]/idle_timeout
|
||||
#idle_timeout = 0
|
||||
|
||||
# Debug: dump AMQP frames to stdout (boolean value)
|
||||
# Deprecated group/name - [amqp1]/trace
|
||||
#trace = false
|
||||
|
||||
# CA certificate PEM file for verifing server certificate (string
|
||||
# value)
|
||||
# Deprecated group/name - [amqp1]/ssl_ca_file
|
||||
#ssl_ca_file =
|
||||
|
||||
# Identifying certificate PEM file to present to clients (string
|
||||
# value)
|
||||
# Deprecated group/name - [amqp1]/ssl_cert_file
|
||||
#ssl_cert_file =
|
||||
|
||||
# Private key PEM file used to sign cert_file certificate (string
|
||||
# value)
|
||||
# Deprecated group/name - [amqp1]/ssl_key_file
|
||||
#ssl_key_file =
|
||||
|
||||
# Password for decrypting ssl_key_file (if encrypted) (string value)
|
||||
# Deprecated group/name - [amqp1]/ssl_key_password
|
||||
#ssl_key_password = <None>
|
||||
|
||||
# Accept clients using either SSL or plain TCP (boolean value)
|
||||
# Deprecated group/name - [amqp1]/allow_insecure_clients
|
||||
#allow_insecure_clients = false
|
||||
|
||||
|
||||
|
||||
|
||||
[oslo_messaging_rabbit]
|
||||
|
||||
#
|
||||
# From oslo.messaging
|
||||
#
|
||||
|
||||
# Use durable queues in AMQP. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_durable_queues
|
||||
#amqp_durable_queues = false
|
||||
|
||||
# Auto-delete queues in AMQP. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/amqp_auto_delete
|
||||
#amqp_auto_delete = false
|
||||
|
||||
# SSL version to use (valid only if SSL enabled). Valid values are
|
||||
# TLSv1 and SSLv23. SSLv2, SSLv3, TLSv1_1, and TLSv1_2 may be
|
||||
# available on some distributions. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_version
|
||||
#kombu_ssl_version =
|
||||
|
||||
# SSL key file (valid only if SSL enabled). (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_keyfile
|
||||
#kombu_ssl_keyfile =
|
||||
|
||||
# SSL cert file (valid only if SSL enabled). (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_certfile
|
||||
#kombu_ssl_certfile =
|
||||
|
||||
# SSL certification authority file (valid only if SSL enabled).
|
||||
# (string value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_ssl_ca_certs
|
||||
#kombu_ssl_ca_certs =
|
||||
|
||||
# How long to wait before reconnecting in response to an AMQP consumer
|
||||
# cancel notification. (floating point value)
|
||||
# Deprecated group/name - [DEFAULT]/kombu_reconnect_delay
|
||||
#kombu_reconnect_delay = 1.0
|
||||
kombu_reconnect_delay = 5.0
|
||||
|
||||
# The RabbitMQ broker address where a single node is used. (string
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_host
|
||||
#rabbit_host = localhost
|
||||
rabbit_host = {{ server.message_queue.host }}
|
||||
|
||||
# The RabbitMQ broker port where a single node is used. (integer
|
||||
# value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_port
|
||||
#rabbit_port = 5672
|
||||
rabbit_port = {{ server.message_queue.port }}
|
||||
|
||||
# RabbitMQ HA cluster host:port pairs. (list value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_hosts
|
||||
#rabbit_hosts = $rabbit_host:$rabbit_port
|
||||
|
||||
# Connect over SSL for RabbitMQ. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_use_ssl
|
||||
#rabbit_use_ssl = false
|
||||
|
||||
# The RabbitMQ userid. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_userid
|
||||
#rabbit_userid = guest
|
||||
rabbit_userid = {{ server.message_queue.user }}
|
||||
|
||||
# The RabbitMQ password. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_password
|
||||
#rabbit_password = guest
|
||||
rabbit_password = {{ server.message_queue.password }}
|
||||
|
||||
# The RabbitMQ login method. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_login_method
|
||||
#rabbit_login_method = AMQPLAIN
|
||||
|
||||
# The RabbitMQ virtual host. (string value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_virtual_host
|
||||
#rabbit_virtual_host = /
|
||||
rabbit_virtual_host = {{ server.message_queue.virtual_host }}
|
||||
rabbit_ha_queues={{ server.message_queue.ha_queues }}
|
||||
|
||||
# How frequently to retry connecting with RabbitMQ. (integer value)
|
||||
#rabbit_retry_interval = 1
|
||||
|
||||
# How long to backoff for between retries when connecting to RabbitMQ.
|
||||
# (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_retry_backoff
|
||||
#rabbit_retry_backoff = 2
|
||||
|
||||
# Maximum number of RabbitMQ connection retries. Default is 0
|
||||
# (infinite retry count). (integer value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_max_retries
|
||||
#rabbit_max_retries = 0
|
||||
|
||||
# Use HA queues in RabbitMQ (x-ha-policy: all). If you change this
|
||||
# option, you must wipe the RabbitMQ database. (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/rabbit_ha_queues
|
||||
#rabbit_ha_queues = false
|
||||
|
||||
# Number of seconds after which the Rabbit broker is considered down
|
||||
# if heartbeat's keep-alive fails (0 disable the heartbeat). (integer
|
||||
# value)
|
||||
#heartbeat_timeout_threshold = 60
|
||||
|
||||
# How often times during the heartbeat_timeout_threshold we check the
|
||||
# heartbeat. (integer value)
|
||||
#heartbeat_rate = 2
|
||||
|
||||
# Deprecated, use rpc_backend=kombu+memory or rpc_backend=fake
|
||||
# (boolean value)
|
||||
# Deprecated group/name - [DEFAULT]/fake_rabbit
|
||||
#fake_rabbit = false
|
||||
|
||||
[service_credentials]
|
||||
|
||||
#
|
||||
# Options defined in ceilometer.service
|
||||
#
|
||||
|
||||
# User name to use for OpenStack service access. (string
|
||||
# value)
|
||||
#os_username=ceilometer
|
||||
os_username={{ server.identity.user }}
|
||||
|
||||
# Password to use for OpenStack service access. (string value)
|
||||
#os_password=admin
|
||||
os_password={{ server.identity.password }}
|
||||
|
||||
# Tenant ID to use for OpenStack service access. (string
|
||||
# value)
|
||||
#os_tenant_id=
|
||||
|
||||
# Tenant name to use for OpenStack service access. (string
|
||||
# value)
|
||||
#os_tenant_name=admin
|
||||
os_tenant_name={{ server.identity.tenant }}
|
||||
|
||||
# Certificate chain for SSL validation. (string value)
|
||||
#os_cacert=<None>
|
||||
|
||||
# Auth URL to use for OpenStack service access. (string value)
|
||||
#os_auth_url=http://localhost:5000/v2.0
|
||||
os_auth_url=http://{{ server.identity.host }}:5000/v2.0
|
||||
|
||||
# Region name to use for OpenStack service endpoints. (string
|
||||
# value)
|
||||
#os_region_name=<None>
|
||||
os_region_name=RegionOne
|
||||
|
||||
# Type of endpoint in Identity service catalog to use for
|
||||
# communication with OpenStack services. (string value)
|
||||
#os_endpoint_type=publicURL
|
||||
|
||||
# Disables X.509 certificate validation when an SSL connection
|
||||
# to Identity Service is established. (boolean value)
|
||||
#insecure=false
|
|
@ -0,0 +1,117 @@
|
|||
{%- from "ceilometer/map.jinja" import server with context %}
|
||||
{%- from "ceilometer/map.jinja" import agent with context %}
|
||||
{%- if server.get('enabled', False) %}
|
||||
{%- set publisher = server.publisher %}
|
||||
{%- else %}
|
||||
{%- set publisher = agent.publisher %}
|
||||
{%- endif %}
|
||||
---
|
||||
sources:
|
||||
- name: meter_source
|
||||
interval: 600
|
||||
meters:
|
||||
- "*"
|
||||
sinks:
|
||||
- meter_sink
|
||||
- name: cpu_source
|
||||
interval: 60
|
||||
meters:
|
||||
- "cpu"
|
||||
sinks:
|
||||
- cpu_sink
|
||||
- name: disk_source
|
||||
interval: 600
|
||||
meters:
|
||||
- "disk.read.bytes"
|
||||
- "disk.read.requests"
|
||||
- "disk.write.bytes"
|
||||
- "disk.write.requests"
|
||||
- "disk.device.read.bytes"
|
||||
- "disk.device.read.requests"
|
||||
- "disk.device.write.bytes"
|
||||
- "disk.device.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
|
||||
sinks:
|
||||
- name: meter_sink
|
||||
transformers:
|
||||
publishers:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
- 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:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
- name: disk_sink
|
||||
transformers:
|
||||
- name: "rate_of_change"
|
||||
parameters:
|
||||
source:
|
||||
map_from:
|
||||
name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)"
|
||||
unit: "(B|request)"
|
||||
target:
|
||||
map_to:
|
||||
name: "\\1.\\2.\\3.rate"
|
||||
unit: "\\1/s"
|
||||
type: "gauge"
|
||||
publishers:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
- 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:
|
||||
{%- for publisher_name, publisher in publisher.iteritems() %}
|
||||
{%- if publisher_name == 'default' %}
|
||||
- notifier://
|
||||
{%- endif %}
|
||||
{%- if publisher_name == 'graphite' %}
|
||||
- graphite://{{ publisher.host }}:{{ publisher.port }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
|
@ -0,0 +1,48 @@
|
|||
local_ceilometer_agent_compute_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-agent-compute' -u ceilometer -c 1:1"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-agent
|
||||
local_ceilometer_collector_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-collector' -u ceilometer -c 1:3"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-server
|
||||
local_ceilometer_alarm_notifier_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-alarm-notifier' -u ceilometer -c 1:1"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-server
|
||||
local_ceilometer_api_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-api' -u ceilometer -c 1:1"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-server
|
||||
local_ceilometer_collector_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-collector' -u ceilometer -c 1:3"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-server
|
||||
local_ceilometer_alarm_evaluator_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-alarm-evaluator' -u ceilometer -c 1:1"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-server
|
||||
local_ceilometer_agent_notification_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-agent-notification' -u ceilometer -c 1:3"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-server
|
||||
local_ceilometer_agent_central_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a '/usr/bin/ceilometer-agent-central' -u ceilometer -c 1:1"
|
||||
interval: 60
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
- local-ceilometer-server
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
include:
|
||||
{% if pillar.ceilometer.agent is defined %}
|
||||
- ceilometer.agent
|
||||
{% endif %}
|
||||
{% if pillar.ceilometer.server is defined %}
|
||||
- ceilometer.server
|
||||
{% endif %}
|
|
@ -0,0 +1,22 @@
|
|||
|
||||
{% set server = salt['grains.filter_by']({
|
||||
'Debian': {
|
||||
'pkgs': ['ceilometer-alarm-evaluator', 'ceilometer-api', 'ceilometer-agent-central', 'ceilometer-collector', 'python-ceilometerclient','ceilometer-agent-notification','ceilometer-alarm-notifier'],
|
||||
'services': ['ceilometer-collector', 'ceilometer-api','ceilometer-agent-central','ceilometer-agent-notification','ceilometer-alarm-evaluator','ceilometer-alarm-notifier'],
|
||||
},
|
||||
'RedHat': {
|
||||
'pkgs': ['openstack-ceilometer-alarm', 'openstack-ceilometer-api', 'openstack-ceilometer-central', 'openstack-ceilometer-collector', 'python-ceilometerclient'],
|
||||
'services': ['openstack-ceilometer-collector', 'openstack-ceilometer-api'],
|
||||
},
|
||||
}, merge=salt['pillar.get']('ceilometer:server')) %}
|
||||
|
||||
{% set agent = salt['grains.filter_by']({
|
||||
'Debian': {
|
||||
'pkgs': ['ceilometer-agent-compute'],
|
||||
'services': ['ceilometer-agent-compute'],
|
||||
},
|
||||
'RedHat': {
|
||||
'pkgs': ['openstack-ceilometer-compute'],
|
||||
'services': ['openstack-ceilometer-compute'],
|
||||
},
|
||||
}, merge=salt['pillar.get']('ceilometer:agent')) %}
|
|
@ -0,0 +1,41 @@
|
|||
{%- from "ceilometer/map.jinja" import server with context %}
|
||||
{%- if server.enabled %}
|
||||
|
||||
ceilometer_server_packages:
|
||||
pkg.installed:
|
||||
- names: {{ server.pkgs }}
|
||||
|
||||
/etc/ceilometer/ceilometer.conf:
|
||||
file.managed:
|
||||
- source: salt://ceilometer/files/{{ server.version }}/ceilometer-server.conf.{{ grains.os_family }}
|
||||
- template: jinja
|
||||
- require:
|
||||
- pkg: ceilometer_server_packages
|
||||
|
||||
{%- for publisher_name, publisher in server.get('publisher', {}).iteritems() %}
|
||||
|
||||
{%- if publisher_name != "default" %}
|
||||
|
||||
ceilometer_publisher_{{ publisher_name }}_pkg:
|
||||
pkg.latest:
|
||||
- name: ceilometer-publisher-{{ publisher_name }}
|
||||
|
||||
{%- endif %}
|
||||
|
||||
{%- endfor %}
|
||||
|
||||
/etc/ceilometer/pipeline.yaml:
|
||||
file.managed:
|
||||
- source: salt://ceilometer/files/{{ server.version }}/pipeline.yaml
|
||||
- template: jinja
|
||||
- require:
|
||||
- pkg: ceilometer_server_packages
|
||||
|
||||
ceilometer_server_services:
|
||||
service.running:
|
||||
- names: {{ server.services }}
|
||||
- enable: true
|
||||
- watch:
|
||||
- file: /etc/ceilometer/ceilometer.conf
|
||||
|
||||
{%- endif %}
|
|
@ -0,0 +1,11 @@
|
|||
salt-formula-ceilometer (0.2) trusty; urgency=medium
|
||||
|
||||
* First public release
|
||||
|
||||
-- Filip Pytloun <filip.pytloun@tcpcloud.eu> Tue, 06 Oct 2015 16:38:37 +0200
|
||||
|
||||
salt-formula-ceilometer (0.1) trusty; urgency=medium
|
||||
|
||||
* Initial release
|
||||
|
||||
-- Jakub Pavlik <jakub.pavlik@tcpcloud.eu> Thu, 13 Aug 2015 23:23:41 +0200
|
|
@ -0,0 +1 @@
|
|||
9
|
|
@ -0,0 +1,15 @@
|
|||
Source: salt-formula-ceilometer
|
||||
Maintainer: Jakub Pavlik <jakub.pavlik@tcpcloud.eu>
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Build-Depends: debhelper (>= 9)
|
||||
Standards-Version: 3.9.6
|
||||
Homepage: http://www.tcpcloud.eu
|
||||
Vcs-Browser: https://github.com/tcpcloud/salt-formula-ceilometer
|
||||
Vcs-Git: https://github.com/tcpcloud/salt-formula-ceilometer.git
|
||||
|
||||
Package: salt-formula-ceilometer
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, salt-master, reclass
|
||||
Description: Ceilometer Salt formula
|
||||
Install and configure Ceilometer server and client.
|
|
@ -0,0 +1,15 @@
|
|||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: salt-formula-ceilometer
|
||||
Upstream-Contact: Jakub Pavlik <jakub.pavlik@tcpcloud.eu>
|
||||
Source: https://github.com/tcpcloud/salt-formula-ceilometer
|
||||
|
||||
Files: *
|
||||
Copyright: 2014-2015 tcp cloud
|
||||
License: Apache-2.0
|
||||
Copyright (C) 2014-2015 tcp cloud
|
||||
.
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
.
|
||||
On a Debian system you can find a copy of this license in
|
||||
/usr/share/common-licenses/Apache-2.0.
|
|
@ -0,0 +1,3 @@
|
|||
README.rst
|
||||
CHANGELOG.rst
|
||||
VERSION
|
|
@ -0,0 +1,2 @@
|
|||
ceilometer/* /usr/share/salt-formulas/env/ceilometer/
|
||||
metadata/service/* /usr/share/salt-formulas/reclass/service/ceilometer/
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
@ -0,0 +1 @@
|
|||
3.0 (native)
|
|
@ -0,0 +1,27 @@
|
|||
applications:
|
||||
- ceilometer
|
||||
parameters:
|
||||
ceilometer:
|
||||
agent:
|
||||
enabled: true
|
||||
version: ${_param:ceilometer_version}
|
||||
secret: ${_param:ceilometer_secret_key}
|
||||
publisher:
|
||||
default:
|
||||
identity:
|
||||
engine: keystone
|
||||
host: ${_param:cluster_vip_address}
|
||||
port: 35357
|
||||
tenant: service
|
||||
user: ceilometer
|
||||
password: ${_param:keystone_ceilometer_password}
|
||||
message_queue:
|
||||
engine: rabbitmq
|
||||
host: ${_param:cluster_vip_address}
|
||||
port: 5672
|
||||
user: openstack
|
||||
password: ${_param:rabbitmq_openstack_password}
|
||||
virtual_host: '/openstack'
|
||||
ha_queues: true
|
||||
# Workaround for https://bugs.launchpad.net/ceilometer/+bug/1337715
|
||||
rpc_thread_pool_size: 5
|
|
@ -0,0 +1,8 @@
|
|||
parameters:
|
||||
ceilometer:
|
||||
agent:
|
||||
publisher:
|
||||
graphite:
|
||||
enabled: true
|
||||
host: ${_param:ceilometer_graphite_publisher_host}
|
||||
port: ${_param:ceilometer_graphite_publisher_port}
|
|
@ -0,0 +1,26 @@
|
|||
applications:
|
||||
- ceilometer
|
||||
parameters:
|
||||
ceilometer:
|
||||
agent:
|
||||
enabled: true
|
||||
version: ${_param:ceilometer_version}
|
||||
secret: ${_param:ceilometer_secret_key}
|
||||
publisher:
|
||||
default:
|
||||
identity:
|
||||
engine: keystone
|
||||
host: ${_param:cluster_vip_address}
|
||||
port: 35357
|
||||
tenant: service
|
||||
user: ceilometer
|
||||
password: ${_param:keystone_ceilometer_password}
|
||||
message_queue:
|
||||
engine: rabbitmq
|
||||
host: ${_param:cluster_vip_address}
|
||||
port: 5672
|
||||
user: openstack
|
||||
password: ${_param:rabbitmq_openstack_password}
|
||||
virtual_host: '/openstack'
|
||||
# Workaround for https://bugs.launchpad.net/ceilometer/+bug/1337715
|
||||
rpc_thread_pool_size: 5
|
|
@ -0,0 +1,43 @@
|
|||
applications:
|
||||
- ceilometer
|
||||
parameters:
|
||||
ceilometer:
|
||||
server:
|
||||
enabled: true
|
||||
version: ${_param:ceilometer_version}
|
||||
cluster: true
|
||||
secret: ${_param:ceilometer_secret_key}
|
||||
publisher:
|
||||
default:
|
||||
bind:
|
||||
host: ${_param:cluster_local_address}
|
||||
port: 8777
|
||||
identity:
|
||||
engine: keystone
|
||||
host: ${_param:cluster_vip_address}
|
||||
port: 35357
|
||||
tenant: service
|
||||
user: ceilometer
|
||||
password: ${_param:keystone_ceilometer_password}
|
||||
message_queue:
|
||||
engine: rabbitmq
|
||||
host: ${_param:cluster_vip_address}
|
||||
port: 5672
|
||||
user: openstack
|
||||
password: ${_param:rabbitmq_openstack_password}
|
||||
virtual_host: '/openstack'
|
||||
ha_queues: true
|
||||
# Workaround for https://bugs.launchpad.net/ceilometer/+bug/1337715
|
||||
rpc_thread_pool_size: 5
|
||||
database:
|
||||
engine: mongodb
|
||||
members:
|
||||
- host: ${_param:cluster_node01_address}
|
||||
port: 27017
|
||||
- host: ${_param:cluster_node02_address}
|
||||
port: 27017
|
||||
- host: ${_param:cluster_node03_address}
|
||||
port: 27017
|
||||
name: ceilometer
|
||||
user: ceilometer
|
||||
password: ${_param:mongodb_ceilometer_password}
|
|
@ -0,0 +1,8 @@
|
|||
parameters:
|
||||
ceilometer:
|
||||
server:
|
||||
publisher:
|
||||
graphite:
|
||||
enabled: true
|
||||
host: ${_param:ceilometer_graphite_publisher_host}
|
||||
port: ${_param:ceilometer_graphite_publisher_port}
|
|
@ -0,0 +1,37 @@
|
|||
applications:
|
||||
- ceilometer
|
||||
parameters:
|
||||
ceilometer:
|
||||
server:
|
||||
enabled: true
|
||||
version: ${_param:ceilometer_version}
|
||||
secret: ${_param:ceilometer_secret_key}
|
||||
publisher:
|
||||
default:
|
||||
bind:
|
||||
host: ${_param:single_address}
|
||||
port: 8777
|
||||
identity:
|
||||
engine: keystone
|
||||
host: ${_param:single_address}
|
||||
port: 35357
|
||||
tenant: service
|
||||
user: ceilometer
|
||||
password: ${_param:keystone_ceilometer_password}
|
||||
message_queue:
|
||||
engine: rabbitmq
|
||||
host: ${_param:single_address}
|
||||
port: 5672
|
||||
user: openstack
|
||||
password: ${_param:rabbitmq_openstack_password}
|
||||
virtual_host: '/openstack'
|
||||
ha_queues: true
|
||||
# Workaround for https://bugs.launchpad.net/ceilometer/+bug/1337715
|
||||
rpc_thread_pool_size: 5
|
||||
database:
|
||||
engine: mongodb
|
||||
host: ${_param:ceilometer_database_host}
|
||||
port: 27017
|
||||
name: ceilometer
|
||||
user: ceilometer
|
||||
password: ${_param:mongodb_ceilometer_password}
|
Loading…
Reference in New Issue