Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ceilometer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cloud
charms
ceilometer
Commits
76569ace
Commit
76569ace
authored
7 years ago
by
Jenkins
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Set event,meter_dispatchers=database explicitly when used with MongoDB"
parents
77d332ba
486b6f97
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/mitaka/ceilometer.conf
+3
-0
3 additions, 0 deletions
templates/mitaka/ceilometer.conf
templates/ocata/ceilometer.conf
+64
-0
64 additions, 0 deletions
templates/ocata/ceilometer.conf
with
67 additions
and
0 deletions
templates/mitaka/ceilometer.conf
+
3
−
0
View file @
76569ace
...
...
@@ -13,6 +13,9 @@ event_pipeline_cfg_file = /etc/ceilometer/event_pipeline_alarm.yaml
{%
if
gnocchi_url
-%}
meter_dispatchers
=
gnocchi
event_dispatchers
=
gnocchi
{%
elif
db_host
or
db_mongo_servers
-%}
meter_dispatchers
=
database
event_dispatchers
=
database
{%-
endif
%}
[
api
]
...
...
This diff is collapsed.
Click to expand it.
templates/ocata/ceilometer.conf
0 → 100644
+
64
−
0
View file @
76569ace
# ocata
###############################################################################
# [ WARNING ]
# ceilometer configuration file maintained by Juju
# local changes may be overwritten.
###############################################################################
[
DEFAULT
]
debug
= {{
debug
}}
verbose
= {{
verbose
}}
use_syslog
= {{
use_syslog
}}
event_pipeline_cfg_file
= /
etc
/
ceilometer
/
event_pipeline_alarm
.
yaml
{%
if
gnocchi_url
-%}
meter_dispatchers
=
gnocchi
event_dispatchers
=
gnocchi
{%
elif
db_host
or
db_mongo_servers
-%}
meter_dispatchers
=
database
{%-
endif
%}
[
api
]
port
= {{
port
}}
workers
= {{
api_workers
}}
{%
if
service_host
-%}
[
service_credentials
]
auth_url
= {{
service_protocol
}}://{{
service_host
}}:{{
service_port
}}
project_name
= {{
admin_tenant_name
}}
username
= {{
admin_user
}}
password
= {{
admin_password
}}
{%
if
api_version
==
"3"
-%}
project_domain_name
= {{
admin_domain_name
}}
user_domain_name
= {{
admin_domain_name
}}
{%
else
-%}
project_domain_name
=
default
user_domain_name
=
default
{%
endif
-%}
auth_type
=
password
{%
endif
-%}
{%
if
db_host
or
db_mongo_servers
-%}
[
database
]
{%
if
db_replset
: -%}
connection
=
mongodb
://{{
db_mongo_servers
}}/{{
db_name
}}?
readPreference
=
primaryPreferred
&
replicaSet
={{
db_replset
}}
mongodb_replica_set
= {{
db_replset
}}
{%
else
-%}
connection
=
mongodb
://{{
db_host
}}:{{
db_port
}}/{{
db_name
}}
{%
endif
%}
metering_time_to_live
= {{
metering_time_to_live
}}
event_time_to_live
= {{
event_time_to_live
}}
{%-
endif
%}
[
publisher
]
telemetry_secret
= {{
metering_secret
}}
{%
if
gnocchi_url
-%}
[
dispatcher_gnocchi
]
filter_service_activity
=
False
archive_policy
= {{
archive_policy
}}
url
= {{
gnocchi_url
}}
{%-
endif
%}
{%
include
"section-keystone-authtoken-mitaka"
%}
{%
include
"section-rabbitmq-oslo"
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment