Skip to content

Commit 0cbfe1c

Browse files
committed
feat: added prometheus integration for metrics
1 parent aea90dd commit 0cbfe1c

File tree

4 files changed

+502
-9
lines changed

4 files changed

+502
-9
lines changed

Makefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
clean:
2-
rm -rf build/
2+
@rm -rf build/
33

44
format:
5-
gofmt -s -w .
5+
@gofmt -s -w .
66

77
build_win: clean format
8-
mkdir build
9-
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o build
8+
@mkdir build
9+
@CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o build
1010

1111
build_auto: clean format
12-
mkdir build
13-
CGO_ENABLED=0 go build -ldflags="-s -w" -o build
12+
@mkdir build
13+
@CGO_ENABLED=0 go build -ldflags="-s -w" -o build

go.mod

+13-3
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,33 @@ go 1.20
44

55
require (
66
github.com/andybalholm/brotli v1.0.5 // indirect
7+
github.com/ansrivas/fiberprometheus/v2 v2.6.0 // indirect
8+
github.com/beorn7/perks v1.0.1 // indirect
79
github.com/cespare/xxhash/v2 v2.2.0 // indirect
810
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
11+
github.com/gofiber/adaptor/v2 v2.2.1 // indirect
912
github.com/gofiber/fiber/v2 v2.46.0 // indirect
1013
github.com/gofiber/storage/redis v1.3.4 // indirect
14+
github.com/golang/protobuf v1.5.3 // indirect
1115
github.com/google/uuid v1.3.0 // indirect
1216
github.com/jackc/pgpassfile v1.0.0 // indirect
1317
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
1418
github.com/jackc/pgx/v5 v5.3.1 // indirect
1519
github.com/jinzhu/inflection v1.0.0 // indirect
1620
github.com/jinzhu/now v1.1.5 // indirect
1721
github.com/joho/godotenv v1.5.1 // indirect
18-
github.com/klauspost/compress v1.16.3 // indirect
22+
github.com/klauspost/compress v1.16.5 // indirect
1923
github.com/mattn/go-colorable v0.1.13 // indirect
20-
github.com/mattn/go-isatty v0.0.18 // indirect
24+
github.com/mattn/go-isatty v0.0.19 // indirect
2125
github.com/mattn/go-runewidth v0.0.14 // indirect
26+
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
2227
github.com/philhofer/fwd v1.1.2 // indirect
28+
github.com/prometheus/client_golang v1.15.1 // indirect
29+
github.com/prometheus/client_model v0.4.0 // indirect
30+
github.com/prometheus/common v0.44.0 // indirect
31+
github.com/prometheus/procfs v0.10.1 // indirect
2332
github.com/redis/go-redis/v9 v9.0.5 // indirect
24-
github.com/rivo/uniseg v0.2.0 // indirect
33+
github.com/rivo/uniseg v0.4.4 // indirect
2534
github.com/savsgio/dictpool v0.0.0-20221023140959-7bf2e61cea94 // indirect
2635
github.com/savsgio/gotils v0.0.0-20230208104028-c358bd845dee // indirect
2736
github.com/tinylib/msgp v1.1.8 // indirect
@@ -31,6 +40,7 @@ require (
3140
golang.org/x/crypto v0.9.0 // indirect
3241
golang.org/x/sys v0.8.0 // indirect
3342
golang.org/x/text v0.9.0 // indirect
43+
google.golang.org/protobuf v1.30.0 // indirect
3444
gorm.io/driver/postgres v1.5.2 // indirect
3545
gorm.io/gorm v1.25.1 // indirect
3646
)

0 commit comments

Comments
 (0)