ceilometer is not collecting all the available compute metrics

Bug #1914442 reported by Giuseppe Petralia
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Ceilometer Agent Charm
Fix Released
Medium
Unassigned
OpenStack Ceilometer Charm
New
Undecided
Unassigned

Bug Description

Cloud bionic-stein.

Available metrics for compute https://docs.openstack.org/ceilometer/rocky/admin/telemetry-measurements.html

but we are only collecting the following:
compute.instance.booting.time, cpu, disk.ephemeral.size, disk.root.size, memory.usage, memory, vcpus

$ juju config ceilometer enable-all-pollsters
true

Is there any config should be changed from the default to have more metrics available or is this a bug in the upstream project?

ceilometer is at version 1:12.1.1-0ubuntu1~cloud0 on both agent and ceilometer unit.

charm-ceilometer-agent rev. 263
charm-ceilometer rev. 273

Revision history for this message
Zachary Zehring (zzehring) wrote :

subscribed ~field-medium

Revision history for this message
Zachary Zehring (zzehring) wrote :

Looking into the ceilometer-agent charm, it looks like it just takes the default polling.yaml for ceilometer [0]. This would need to be configurable as it is in the ceilometer charm. Even if you set enable-all-pollsters in ceilometer config, the ceilometer-agent units do not share the same polling info, so it won't be able to report those metrics.

I was able to test this by manually changing /etc/ceilometer/polling.yaml on a ceilometer-agent unit, adding a metric that's Origin is Pollster [1] and restarting the ceilometer agent service. In my case, it was ceilometer-agent on a nova compute and the service was ceilometer-agent-compute.service. After the restart, the added metric was available.

So to fix, we likely need to add configurability to ceilometer-agent's polling.yaml.

[0] https://github.com/openstack/ceilometer/blob/master/etc/ceilometer/polling.yaml
[1] https://docs.openstack.org/ceilometer/latest/admin/telemetry-measurements.html

David Ames (thedac)
Changed in charm-ceilometer-agent:
status: New → Triaged
importance: Undecided → Medium
tags: added: onboarding
Changed in charm-ceilometer-agent:
assignee: nobody → Cornellius Metto (ckmetto)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceilometer-agent (master)
Changed in charm-ceilometer-agent:
status: Triaged → In Progress
tags: added: good-first-bug
tags: removed: onboarding
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceilometer-agent (master)

Reviewed: https://review.opendev.org/c/openstack/charm-ceilometer-agent/+/789876
Committed: https://opendev.org/openstack/charm-ceilometer-agent/commit/9fd4ea0a39a9bf44dfd3563ea819a57c4eadd9ff
Submitter: "Zuul (22348)"
Branch: master

commit 9fd4ea0a39a9bf44dfd3563ea819a57c4eadd9ff
Author: Cornellius Metto <email address hidden>
Date: Wed May 5 17:58:06 2021 +0300

    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

Changed in charm-ceilometer-agent:
status: In Progress → Fix Committed
Changed in charm-ceilometer-agent:
milestone: none → 21.10
assignee: Cornellius Metto (ckmetto) → nobody
Changed in charm-ceilometer-agent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.