Skip to content

[question] Why default collectors implementations create metric object every time when #collect methos is called #1119

Description

@sleshJdev

https://github.com/prometheus/client_python/blob/master/prometheus_client/gc_collector.py

Should default collectors re-use already created instance of metric? Why it creates it again and again?

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