[dev][ceilometer] Add custom uptime metric to Ceilometer
Guys, I deployed Ceilometer into my OpenStack deployment using the Juju charm. I’m trying to add a custom metric that records the uptime of instances every hour. I’m totally lost on how to archive this or if it’s possible. Any help would be appreciate. So far I tried playing around with the meters.yaml and polling.yaml to see if I could pull it off with no luck. Is this possible? how should I do it? Thanks in advance. Regards, Ángel
Hi Angel So for nova instances, the ceilometer-agent charm is added as a subordinate (by relating the application to the nova-compute application). This "enable-all-pollsters" on the ceilometer-agent charm then enables all available pollsters on the the nova-compute node. The relevant template that gets written is: https://opendev.org/openstack/charm-ceilometer-agent/src/branch/master/templ... If this doesn't help then please report back here, or join us in either #openstack-charms on IRC or in the OpenStack Charms channel in our public mattermost (https://chat.charmhub.io/charmhub/channels/openstack-charms) if you'd like to chat or have more 'real time' help. Thanks Alex. On Thu, 4 May 2023 at 04:28, Angel Santana <angelsantana@neoscloudllc.com> wrote:
Guys,
I deployed Ceilometer into my OpenStack deployment using the Juju charm. I’m trying to add a custom metric that records the uptime of instances every hour. I’m totally lost on how to archive this or if it’s possible. Any help would be appreciate.
So far I tried playing around with the meters.yaml and polling.yaml to see if I could pull it off with no luck. Is this possible? how should I do it?
Thanks in advance.
Regards, Ángel
-- Alex Kavanagh OpenStack Engineering - Canonical Ltd
Yes it is. You should check at the Dynamic pollsters sub-system in Ceilometer [1]. You can basically monitor/collect data from anything you want or need with that. [1] https://docs.openstack.org/ceilometer/latest/admin/telemetry-dynamic-pollste... On Wed, May 3, 2023 at 11:30 PM Angel Santana <angelsantana@neoscloudllc.com> wrote:
Guys,
I deployed Ceilometer into my OpenStack deployment using the Juju charm. I’m trying to add a custom metric that records the uptime of instances every hour. I’m totally lost on how to archive this or if it’s possible. Any help would be appreciate.
So far I tried playing around with the meters.yaml and polling.yaml to see if I could pull it off with no luck. Is this possible? how should I do it?
Thanks in advance.
Regards, Ángel
-- Rafael Weingärtner
participants (3)
-
Alex Kavanagh
-
Angel Santana
-
Rafael Weingärtner