All Projects → semihalev → Gin Stats

semihalev / Gin Stats

Licence: mit
Gin's middleware for request stats

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Gin Stats

Go Http Metrics
Go modular http middleware to measure HTTP requests independent of metrics backend (with Prometheus and OpenCensus as backend implementations) and http framework/library
Stars: ✭ 128 (+433.33%)
Mutual labels:  middleware, gin, metrics
Gin Swagger
gin middleware to automatically generate RESTful API documentation with Swagger 2.0.
Stars: ✭ 2,001 (+8237.5%)
Mutual labels:  middleware, gin
Gin Web
由gin + gorm + jwt + casbin组合实现的RBAC权限管理脚手架Golang版, 搭建完成即可快速、高效投入业务开发
Stars: ✭ 107 (+345.83%)
Mutual labels:  middleware, gin
Starlette Prometheus
Prometheus integration for Starlette.
Stars: ✭ 127 (+429.17%)
Mutual labels:  middleware, metrics
Speedbump
A Redis-backed rate limiter in Go
Stars: ✭ 107 (+345.83%)
Mutual labels:  middleware, gin
Gin Cors
Cross Origin Resource Sharing middleware for gin-gonic
Stars: ✭ 107 (+345.83%)
Mutual labels:  middleware, gin
Gzip
💾 Golang gzip middleware for Gin and net/http | Golang gzip中间件,支持Gin和net/http,开箱即用同时可定制
Stars: ✭ 113 (+370.83%)
Mutual labels:  middleware, gin
stats
📊 Request statistics middleware that stores response times, status code counts, etc
Stars: ✭ 15 (-37.5%)
Mutual labels:  middleware, stats
druid-prometheus-exporter
Service to collect Apache Druid metrics and export them to Prometheus
Stars: ✭ 14 (-41.67%)
Mutual labels:  metrics, gin
gin-metrics
gin-gonic/gin metrics for prometheus.
Stars: ✭ 87 (+262.5%)
Mutual labels:  metrics, gin
Gin Glog
Gin middleware to use glog
Stars: ✭ 53 (+120.83%)
Mutual labels:  middleware, gin
Mortar
Mortar is a GO framework/library for building gRPC (and REST) web services.
Stars: ✭ 492 (+1950%)
Mutual labels:  middleware, metrics
Gin Gomonitor
Gin middleware for monitoring
Stars: ✭ 59 (+145.83%)
Mutual labels:  gin, metrics
Gin
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Stars: ✭ 53,971 (+224779.17%)
Mutual labels:  middleware, gin
Opencensus Node
A stats collection and distributed tracing framework
Stars: ✭ 249 (+937.5%)
Mutual labels:  metrics, stats
Opencensus Web
A stats collection and distributed tracing framework
Stars: ✭ 168 (+600%)
Mutual labels:  metrics, stats
Opencensus Csharp
Distributed tracing and stats collecting framework
Stars: ✭ 126 (+425%)
Mutual labels:  metrics, stats
Stats
Go package for abstracting stats collection
Stars: ✭ 164 (+583.33%)
Mutual labels:  metrics, stats
Ginrpc
gin auto binding,grpc, and annotated route,gin 注解路由, grpc,自动参数绑定工具
Stars: ✭ 157 (+554.17%)
Mutual labels:  middleware, gin
Wallace Cli
Pretty CSS analytics on the CLI
Stars: ✭ 281 (+1070.83%)
Mutual labels:  metrics, stats

Gin's middleware for request stats

Build Status codecov Go Report Card GoDoc

Lightweight Gin's middleware for request metrics

Usage

Start using it

Download and install it:

$ go get github.com/semihalev/gin-stats
import "github.com/semihalev/gin-stats"

Example usage:

package main

import (
	"fmt"
	"time"

	"github.com/gin-gonic/gin"
	"github.com/semihalev/gin-stats"    
)

func main() {
	r := gin.Default()
	r.Use(stats.RequestStats())
    
	r.GET("/stats", func(c *gin.Context) {
		c.JSON(http.StatusOK, stats.Report())
	})

	// Listen and Server in 0.0.0.0:8080
	r.Run(":8080")
}

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].