9fd4ea0a39
The ceilometer compute agent uses the default polling.yaml from the installed packages without the ability to configure its contents. This change adds two configuration options: 'polling-interval' and 'enable-all-pollsters', borrowing from the implementation in charm-ceilometer. We start off with a limited set of meters as before and if these are not enough, the user can set 'enable-all-pollsters' to 'true' to collect all available 'Pollster' metrics as listed in the documentation [1]. Verification: I tested this change on a cluster built from the OpenStack base bundle and the ceilometer and gnocchi charms. I confirmed that extra metrics that originate from the Compute Agent pollster (e.g. disk.device.read.latency) are available in gnocchi after setting 'enable-all-pollsters' to true. [1] https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html Closes-Bug: #1914442 Change-Id: I21c9a93e7dd91bced9365e44f3e6a5315976c3bb
32 lines
878 B
YAML
32 lines
878 B
YAML
---
|
|
sources:
|
|
- name: juju_pollsters
|
|
interval: {{ polling_interval }}
|
|
meters:
|
|
{%- if enable_all_pollsters %}
|
|
- "*"
|
|
{%- else %}
|
|
- cpu
|
|
- cpu_l3_cache
|
|
- memory.usage
|
|
- network.incoming.bytes
|
|
- network.incoming.packets
|
|
- network.outgoing.bytes
|
|
- network.outgoing.packets
|
|
- disk.device.read.bytes
|
|
- disk.device.read.requests
|
|
- disk.device.write.bytes
|
|
- disk.device.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
|
|
{%- endif %}
|