Registry / web-framework / zsais-go-gin-prometheus

zsais-go-gin-prometheus

JSON →
library1.0.3gogounverified

Prometheus metrics middleware for the Gin web framework.

go get github.com/zsais/go-gin-prometheus
INSTALL
IMPORT
SIG · ZSAIS-GO-GIN-PROME
Z
zsais-go-gin-prometheus
web-frameworkgov1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ginprometheus
github.com/zsais/go-gin-prometheus

Sets up Prometheus metrics collection for a Gin router.

package main import ( "github.com/gin-gonic/gin" "github.com/zsais/go-gin-prometheus" ) func main() { r := gin.Default() p := ginprometheus.NewPrometheus("gin") p.Use(r) r.GET("/", func(c *gin.Context) { c.String(200, "Hello") }) r.Run(":8080") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
Perplexity
1
OpenAI (training)
1
Resources
zsais-go-gin-prometheus — go get zsais-go-gin-prometheus · libregistry