Skip to content

Should support custom metrics prefix #1241

Open
@zwpaper

Description

@zwpaper

Description

ogen now use a const metrics key:

ServerRequestCount = "ogen.server.request_count" // Incoming request count total

but maybe provide a way to set a prefix would be great for users, resulting something like:

<PROJECT>_duration_milliseconds_count{otel_scope_name="github.com/ogen-go/ogen",otel_scope_version="semver:0.2.0"} 2
# HELP <PROJECT>_request_count_total Incoming request count total
# TYPE <PROJECT>_request_count_total counter
<PROJECT>_request_count_total{otel_scope_name="github.com/ogen-go/ogen",otel_scope_version="semver:0.2.0"} 2

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions