Skip to content

Instantly share code, notes, and snippets.

@zetas
Created May 19, 2015 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zetas/da127aae3830414d86a3 to your computer and use it in GitHub Desktop.
Save zetas/da127aae3830414d86a3 to your computer and use it in GitHub Desktop.
Icehouse Ceilometer config
###################
# Existing
###################
connection = mongodb://{{ db_mongo_servers }}/{{ db_name }}?readPreference=primaryPreferred&replicaSet={{ db_replset }}
mongodb_replica_set = {{ db_replset }}
connection = mongodb://{{ db_host }}:{{ db_port }}/{{ db_name }}
##################
# Proposed
##################
# db_params is sudo code and not implemented but intends to encapsulate whatever replication or additional settings are necessary
# regardless of the backing database type.
connection = {{ db_select }}://{{ db_host }}:{{ db_port }}/{{ db_name }}{{ db_params }}
# There is no telemetry config value for mysql replication. Either not needed or not supported.
{% if db_select == ‘mongodb’ && db_replset: -%}
mongodb_replica_set = {{ db_replset }}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment