Limit the default numbers of metrics polled
Enabling everything to be polled and transformed by default is quite heavy and can lead to a massive amount of unused metrics. Limit the default to a few metrics known to be actually useful to common deployers. We keep all pollsters enabled on unit tests and devstack. Change-Id: Ifb5aa684e575b7904726276b7205824f2dcaa7ce
This commit is contained in:
@@ -250,7 +250,7 @@ class BaseAgentManagerTestCase(base.BaseTestCase):
|
|||||||
self.CONF.set_override("backend_url", "zake://", "coordination")
|
self.CONF.set_override("backend_url", "zake://", "coordination")
|
||||||
self.CONF.set_override(
|
self.CONF.set_override(
|
||||||
'cfg_file',
|
'cfg_file',
|
||||||
self.path_get('etc/ceilometer/polling.yaml'), group='polling'
|
self.path_get('etc/ceilometer/polling_all.yaml'), group='polling'
|
||||||
)
|
)
|
||||||
self.mgr = self.create_manager()
|
self.mgr = self.create_manager()
|
||||||
self.mgr.extensions = self.create_extension_list()
|
self.mgr.extensions = self.create_extension_list()
|
||||||
|
@@ -351,9 +351,10 @@ function configure_ceilometer {
|
|||||||
# with rootwrap installation done elsewhere and also clobber
|
# with rootwrap installation done elsewhere and also clobber
|
||||||
# ceilometer.conf settings that have already been made.
|
# ceilometer.conf settings that have already been made.
|
||||||
# Anyway, explicit is better than implicit.
|
# Anyway, explicit is better than implicit.
|
||||||
for conffile in policy.json api_paste.ini polling.yaml; do
|
for conffile in policy.json api_paste.ini; do
|
||||||
cp $CEILOMETER_DIR/etc/ceilometer/$conffile $CEILOMETER_CONF_DIR
|
cp $CEILOMETER_DIR/etc/ceilometer/$conffile $CEILOMETER_CONF_DIR
|
||||||
done
|
done
|
||||||
|
cp $CEILOMETER_DIR/etc/ceilometer/polling_all.yaml $CEILOMETER_CONF_DIR/polling.yaml
|
||||||
|
|
||||||
cp $CEILOMETER_DIR/ceilometer/pipeline/data/*.yaml $CEILOMETER_CONF_DIR
|
cp $CEILOMETER_DIR/ceilometer/pipeline/data/*.yaml $CEILOMETER_CONF_DIR
|
||||||
|
|
||||||
|
@@ -1,6 +1,26 @@
|
|||||||
---
|
---
|
||||||
sources:
|
sources:
|
||||||
- name: all_pollsters
|
- name: some_pollsters
|
||||||
interval: 300
|
interval: 300
|
||||||
meters:
|
meters:
|
||||||
- "*"
|
- cpu
|
||||||
|
- memory.usage
|
||||||
|
- network.incoming.bytes
|
||||||
|
- network.incoming.packets
|
||||||
|
- network.outgoing.bytes
|
||||||
|
- network.outgoing.packets
|
||||||
|
- disk.read.bytes
|
||||||
|
- disk.read.requests
|
||||||
|
- disk.write.bytes
|
||||||
|
- disk.write.requests
|
||||||
|
- hardware.cpu.util
|
||||||
|
- hardware.memory.used
|
||||||
|
- hardware.memory.total
|
||||||
|
- hardware.memory.buffer
|
||||||
|
- hardware.memory.cached
|
||||||
|
- hardware.memory.swap.avail
|
||||||
|
- hardware.memory.swap.total
|
||||||
|
- hardware.system_stats.io.outgoing.blocks
|
||||||
|
- hardware.system_stats.io.incoming.blocks
|
||||||
|
- hardware.network.ip.incoming.datagrams
|
||||||
|
- hardware.network.ip.outgoing.datagrams
|
||||||
|
6
etc/ceilometer/polling_all.yaml
Normal file
6
etc/ceilometer/polling_all.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
sources:
|
||||||
|
- name: all_pollsters
|
||||||
|
interval: 300
|
||||||
|
meters:
|
||||||
|
- "*"
|
Reference in New Issue
Block a user