Merge "Add more verbosity for gnocchi_resources.yaml"
This commit is contained in:
commit
a4490abd8f
@ -16,6 +16,7 @@ from collections import defaultdict
|
||||
import hashlib
|
||||
import itertools
|
||||
import operator
|
||||
import pkg_resources
|
||||
import re
|
||||
import threading
|
||||
import uuid
|
||||
@ -252,7 +253,9 @@ class GnocchiDispatcher(dispatcher.MeterDispatcherBase,
|
||||
plugin_manager = extension.ExtensionManager(
|
||||
namespace='ceilometer.event.trait_plugin')
|
||||
data = declarative.load_definitions(
|
||||
conf, {}, conf.dispatcher_gnocchi.resources_definition_file)
|
||||
conf, {}, conf.dispatcher_gnocchi.resources_definition_file,
|
||||
pkg_resources.resource_filename(__name__,
|
||||
"data/gnocchi_resources.yaml"))
|
||||
resource_defs = []
|
||||
for resource in data.get('resources', []):
|
||||
try:
|
||||
|
@ -300,8 +300,7 @@ function configure_ceilometer {
|
||||
# ceilometer.conf settings that have already been made.
|
||||
# Anyway, explicit is better than implicit.
|
||||
for conffile in policy.json api_paste.ini pipeline.yaml \
|
||||
event_definitions.yaml event_pipeline.yaml \
|
||||
gnocchi_resources.yaml; do
|
||||
event_definitions.yaml event_pipeline.yaml; do
|
||||
cp $CEILOMETER_DIR/etc/ceilometer/$conffile $CEILOMETER_CONF_DIR
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user