Skip to content

Migrate metric queries from libvirt to OpenStack #162

Description

@WizardBit

Example, the compute overview dashboard has the following for scheduled VMs.

sum by(project_name) (libvirt_domain_info_meta{juju_application=~"$juju_application",juju_model=~"$juju_model",juju_model_uuid=~"$juju_model_uuid",juju_unit=~"$juju_unit",project_name=~"$project"})

Source

But, the cloud usage dashboard has the following for scheduled VMs.

sum(openstack_nova_running_vms{hostname=~"$hypervisor.*",juju_application=~"$juju_application",juju_model=~"$juju_model",juju_model_uuid=~"$juju_model_uuid",juju_unit=~"$juju_unit"})

Source

The first does not work without the libvirt exporter, and the second does. Making these changes where possible is beneficial due to the prometheus libvirt exporter being deprecated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions