Skip to content

Expose metric HELP strings as constants for reuse #420

@mvillmow

Description

@mvillmow

The 24 help strings in gauge() call sites are inline string literals. If the exporter is ever extended (e.g. a separate OpenMetrics endpoint, documentation generator, or schema validation tool), those strings can't be imported without re-parsing the source. Extracting them to a module-level dict (METRIC_HELP: dict[str, str]) would make them reusable without changing any runtime behavior.

Follow-up from #155

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions