Skip to content

feat: add collectors and metrics for additional OpenStack services - #117

Open
Maximilian Sesterhenn (msesterhenn) wants to merge 11 commits into
vexxhost:mainfrom
wiit-cloud:main
Open

Maximilian Sesterhenn (msesterhenn) wants to merge 11 commits into
vexxhost:mainfrom
wiit-cloud:main

Conversation

@msesterhenn

Copy link
Copy Markdown

Summary

This PR contains a set of collector and metric improvements that we use in our
production OpenStack environment.

The changes add coverage for additional services and expose additional metrics, including quota handling,
availability-zone information, network attributes, Placement data, and
Keystone unified limits.
They attempt to more closely mimic the original openstack_exporter metrics and labels.

Included changes

  • add collectors for Masakari and Designate
  • add Cinder quota defaults and Keystone project filtering
  • add Neutron MTU and device ID labels, VPN metrics, and tenant IDs on quota
    metrics
  • improve Nova quota handling, availability-zone resolution, CPU availability
    reporting, and collision-safe tenant labels
  • add configurable Nova default quota values
  • add Placement resource generation and provider allocation metrics
  • add Nova unified-limits support backed by Keystone
  • fix Keystone tag handling with newer sqlc versions

Deployment context

We actively use this change set in our OpenStack environment.

The changes are currently grouped because they were developed and validated as
part of the same operational rollout.
If maintainers prefer a smaller review scope, we can split this PR into focused follow-up PRs.

@msesterhenn Maximilian Sesterhenn (msesterhenn) changed the title feat: add collectors and metrics used in production OpenStack deployments feat: add collectors and metrics for additional OpenStack services Jul 20, 2026
Simon Stephan and others added 2 commits July 22, 2026 21:45

Copy link
Copy Markdown
Member

Hi Maximilian Sesterhenn (@msesterhenn), thanks for sending all of this, and sorry it's been sitting for a while. Two things have changed on main since you opened it.

Designate is merged. #115 added a Designate collector and shipped in v1.3.0. It publishes the five upstream metrics with the same names, labels and status values, and derives recordset status the same way Designate does (ERROR, then PENDING, then ACTIVE, then DELETED, and ACTIVE when a recordset has no records). Please drop the Designate commit (29e5487) from this PR.

The SQL now lives in openstackdb. #131 moved every query, schema fixture and the generated sqlc code into vexxhost/openstackdb, and the exporter now only holds the collectors. This branch still adds queries under internal/db and sql/, which no longer exist here, so it conflicts in about 60 files. A merge from main won't fix that, and since the PR comes from your fork's main with maintainer edits off, we can't rebase it for you.

We'd like to take you up on your offer to split this into focused PRs. For each feature (Masakari, Neutron VPN/MTU/device ID, Cinder quota defaults, Nova AZ and quota handling, Placement allocations, Keystone unified limits):

  1. Open a PR on openstackdb with the query, the schema fixture changes and a test. Most of these queries aren't there yet.
  2. After we release openstackdb, open a small PR here that bumps it and adds or extends the collector.

Topic branches instead of your fork's main will also let us push small fixes during review. #115 and openstackdb#9 are good examples of this flow. Feel free to close this one once the first split PRs are up.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants