{"repo":"carousell/md-fasthttp-prometheus-middleware","free":true,"listed":false,"github":"https://github.com/carousell/md-fasthttp-prometheus-middleware","clone":"git clone https://github.com/carousell/md-fasthttp-prometheus-middleware.git","description":"Prometheus middleware for fasthttp, fasthttp/router","language":"Go","stars":13,"topics":["fasthttp","mudah","prometheus"],"license":"MIT","category":"analytics","readme_excerpt":"fasthttp prometheus-middleware Prometheus middleware for fasthttp Exports metrics for request duration with http status code as and http request method + endpoint/route as f.e , Example using fasthttp/router package main import ( \"log\" fasthttpprom \"github.com/carousell/fasthttp-prometheus-middleware\" \"github.com/fasthttp/router\" \"github.com/valyala/fasthttp\" ) func main() { r := router.New() p := fasthttpprom.NewPrometheus(\"\") p.Use(r) r.GET(\"/health\", func(ctx fasthttp.RequestCtx) { ctx.SetStatusCode(200) ctx.SetBody([]byte( {\"status\": \"pass\"} )) log.Println(string(ctx.Request.URI().Path())) }) log.Println(\"main is listening on \", \"8080\") log.Fatal(fasthttp.ListenAndServe(\":\"+\"8080\", p.Handler)) } Example metrics for above code in /metrics endpoint Claude Code skills This repo ships two project skills (in .claude/skills/ ) for common maintenance work. In Claude Code, invoke them by name or with a slash command. verify-metrics Boots the example server, fires representative requests, scrapes /metrics , and reports the emitted request duration seconds series (labels + bucket boundaries). Since the library has no unit tests, this is the primary way to confirm a change is correct. Use it after any change to prometheus.go — bucket edits, dependency upgrades, or labeling logic. Ask Claude: /verify-metrics It confirms, among other things, that /values/123 collapses to the label path=\"GET /values/{id}\" (cardinality control) rather than exploding per-id. tune-buckets Safely changes t","default_branch":null,"files":null,"tree":[],"storefront":"/r/carousell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/carousell/md-fasthttp-prometheus-middleware/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}