Repository navigation
feat(designate): add full Designate metrics - #115
Conversation
Signed-off-by: Dong Ma <winterma.dong@gmail.com>
|
Dong Ma (@larainema) what's the story behind this? Why only one(up) metric? Apart from that - lgtm. |
Tadas Sutkaitis (@fitbeard) The backstory is that this came from a customer report: they were relying on openstack_designate_up, which existed in the legacy openstack_exporter, and noticed it disappeared when moving to openstack_database_exporter. |
Build on the existing Designate registration and use the read-only queries from openstackdb v0.3.0 for full upstream metric coverage. Allow operators to disable per-recordset status collection independently. Signed-off-by: Tadas Sutkaitis <tadas.sutkaitis@vexxhost.com>
Mohammed Naser (mnaser)
left a comment
There was a problem hiding this comment.
Reviewed against upstream openstack-exporter's designate.go and Designate's source. All five metrics match upstream names, labels and status values, recordset status follows Designate's RecordSet.status precedence, and the opt-out skips the per-recordset query entirely. Unit and integration tests pass. Thanks Dong for starting this and Tadas for finishing it.
Part of ENG-423.
Summary
Build on Dong Ma's original Designate registration and health metric in
3b52207. This extends the existing PR to restore all five upstream metric families with the same labels and status values:openstack_designate_upopenstack_designate_zonesopenstack_designate_zone_statusopenstack_designate_recordsetsopenstack_designate_recordsets_statusThe collector uses the typed read-only queries and integration fixture from openstackdb v0.3.0. Zone and recordset labels use canonical UUIDs. The enabled queries share a read-only snapshot, and a failed scrape reports
openstack_designate_up 0.Set
DESIGNATE_DATABASE_URLto enable collection. All five metrics are on by default.--designate.disable-recordsets-statusorDESIGNATE_DISABLE_RECORDSETS_STATUS=trueskips the per-recordset metric and its database query while preserving the other four.Verification
go mod verifypassed against the released dependency withGOWORK=off._up=0.