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

requests_total metric not found #55

Open
dayadev opened this issue Apr 4, 2023 · 0 comments
Open

requests_total metric not found #55

dayadev opened this issue Apr 4, 2023 · 0 comments

Comments

@dayadev
Copy link

dayadev commented Apr 4, 2023

I am using go-gin-prometheus as a middleware with the default metrics and a couple of custom metrics that I registered but when I look at the metrics in my /metrics endpoint, I do not see a requests_total metric in there. Should I be implementing this like a custom metrics?

 func Use(engine *gin.Engine, port string) {
     prometheus.MustRegister(commonMetrics.ComponentProcessingTime)
     prometheus.MustRegister(commonMetrics.ComponentConsumerFailures)
     ginCol := ginprometheus.NewPrometheus("gin")
     ginCol.SetListenAddress(":" + port)
     ginCol.Use(engine)
}
@dayadev dayadev changed the title total_requests metric not found requests_total metric not found Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant