Skip to content

more flexibility desired from Registry interface #420

@danevandyck

Description

@danevandyck

Hello, hope this finds you well. We're using this library and are happy with its interface and performance in general.

The Registry's interface doesn't support the following usecase, which seems valid.

  • create a metric family with a generic name (e.g. http_request_seconds) and some labels
  • later create a family with the same name but a different set of constant labels
  • get one of the two already allocated instances by Adding its name / labels

Well, I guess it supports it, but only through the NonStandardAppend insert behavior. That behavior isn't suitable for our use since it seems to result in unbounded growth of the set of families absent de-registration.

Functionally, a Family instance provides a convenient way of passing labels through to a component. For example, consider a usecase where I update the same metric (http_request_seconds) in two different components. Ideally, I'd be able to allocate a Family instance with the component name as a label of each. So each metric added to each family instance gets that component label.

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