Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should support custom metrics prefix #1241

Open
zwpaper opened this issue May 10, 2024 · 0 comments
Open

Should support custom metrics prefix #1241

zwpaper opened this issue May 10, 2024 · 0 comments
Labels
enhancement New feature or request openapi-features OpenAPI features support issues

Comments

@zwpaper
Copy link

zwpaper commented May 10, 2024

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

@zwpaper zwpaper added enhancement New feature or request openapi-features OpenAPI features support issues labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request openapi-features OpenAPI features support issues
Projects
None yet
Development

No branches or pull requests

1 participant