10 Commits

Author SHA1 Message Date
Cornellius Metto
9fd4ea0a39 Add configurability to polling.yaml.
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
2021-05-12 17:30:00 +03:00
Rodrigo Barbieri
2aace2fb69 Receive polling-batch-size config
Samples collected can be batched together,
consequently increasing or reducing the
amount of API calls and body data
sent to the configured publisher.

This config is available since Rocky,
receiving the value from ceilometer-charm
to allow its tuning.

Change-Id: I986073fdacd750cf96d662abf1d58844479c25ba
Closes-bug: #1885190
2020-09-17 15:35:49 -03:00
Liam Young
958dfc3e2f Address all rabbit units in clustered deploy
If rabbitmq is deployed in a cluster then the ceilometer charm will
pass rabbitmq_hosts and rabbitmq_host to ceilometer-agent. This charm
was ignoring the rabbitmq_hosts key and thus always talking to a
single rabbit even if there were multiple.

Change-Id: I42c2e3ee4ee2bd1feb9815a4d9895a7121801995
Closes-Bug: #1670273
2017-11-06 10:20:55 +00:00
zhangyangyang
e62dec8b0d change assert(Not)Equals to assert(Not)Equal
According to http://docs.python.org/2/library/unittest.html
assert(Not)Equals is a deprecated alias of assert(Not)Equal.

Change-Id: Idfca0b18bbbede9bf6afb7b6ead902d4abcc04eb
Closes-Bug: #1329757
2017-09-12 21:20:55 +08:00
Frode Nordahl
a904456fe3 Fix support for Keystone v3 domain auth
When using v3 authentication and authorization Ceilometer must
authenticate to services project in service_domain.

Change-Id: Ibb19fa8476cf712ccb4bc524a48d3501f42fc62c
Closes-Bug: 1636098
2016-11-29 23:36:49 +01:00
Zhang Hua
fa77346e98 Add keystone v3 support
Use shared section template for keystone authotken and update
service_credentials section to support Keystone v3 for OpenStack
Mitaka or later.

Change-Id: Ia7750276e6a6a52dc95a93f1d5cb8d1f544a94d5
Closes-Bug: #1624173
2016-10-07 17:05:19 +01:00
James Page
616f05866b Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

Change-Id: I081ca71ffd24c8169bed053c351ad4019956e99b
2016-06-28 11:40:19 +01:00
James Page
355389ca0f Fixup ssl handling 2014-03-28 15:33:10 +00:00
James Page
4c59c6a149 Adjust context for ceilometer relation to pick specific data 2013-12-17 15:00:42 +00:00
James Page
983929d169 Add unit tests 2013-10-20 15:28:18 -07:00