Skip to content

Commit 7d9417c

Browse files
Eduard Llullellull
authored andcommitted
Add prometheus submodule.
This submodule simplifies registering FastBreaker metrics to prometheus.
1 parent bbcdbcf commit 7d9417c

File tree

6 files changed

+850
-0
lines changed

6 files changed

+850
-0
lines changed

go.work

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
go 1.20
2+
3+
use (
4+
.
5+
./prometheus
6+
)

go.work.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
2+
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6 h1:QE6XYQK6naiK1EPAe1g/ILLxN5RBoH5xkJk3CqlMI/Y=
3+
golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U=
4+
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

prometheus/go.mod

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module github.com/bluekiri/fastbreaker/prometheus
2+
3+
go 1.20
4+
5+
require (
6+
github.com/bluekiri/fastbreaker v1.0.1
7+
github.com/prometheus/client_golang v1.14.0
8+
github.com/prometheus/client_model v0.3.0
9+
)
10+
11+
require (
12+
github.com/beorn7/perks v1.0.1 // indirect
13+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
14+
github.com/golang/protobuf v1.5.2 // indirect
15+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
16+
github.com/prometheus/common v0.37.0 // indirect
17+
github.com/prometheus/procfs v0.8.0 // indirect
18+
golang.org/x/sys v0.1.0 // indirect
19+
google.golang.org/protobuf v1.28.1 // indirect
20+
)

0 commit comments

Comments
 (0)