Skip to content

Reconfigurator: Removing services should unregister them from oximeter #5284

@jgallagher

Description

@jgallagher

The only service that currently registers itself as a metrics producer is Nexus, so at least for Nexus, we need to:

  1. Remove the corresponding row in metric_producer for the service.
  2. Notify the assigned Oximeter collector that it should stop polling the producer.

Expanding some details on these, from poking around and chatting with @bnaecker:

  1. metric_producer.id is the service ID, when metric_producer.kind = 'service'. I believe the only consumer of this table is when an Oximeter collector posts itself to Nexus, Nexus notifies it of all the producers it should be polling.
  2. Instances do this today by calling Nexus::unassign_producer. Reconfigurator will need to do the same (which will require some refactoring to make that method usable from the blueprint execution background task).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions