Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Collector Handler only sends varz for a single job of a given type #7

@youngm

Description

@youngm

I've got several jobs that send varz using the default Collector::Handler. Handler appears to cache Handlers given the handler_class not the job.

https://github.com/cloudfoundry/collector/blob/master/lib/collector/handler.rb#L62

This makes it so that you can only have 1 job for each handler class. And all other jobs send metrics using the first job to register that handler class.

I'd be happy to submit a PR that uses the "job" as the Handler cache key instead if it would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions