mirror of
https://github.com/dalbodeule/hop-gate.git
synced 2025-12-07 12:25:44 +09:00
- Introduced Prometheus metrics tracking for DTLS handshakes, HTTP requests, and proxy errors. - Defined counters and histograms with labels for detailed observability. - Registered metrics via `MustRegister` during server initialization. - Added `/metrics` endpoint protected by host domain filtering. - Updated HTTP handler to capture request metadata and record metrics. - Integrated metrics tracking for DTLS handshake processes and various error conditions. - Updated `go.mod` and `go.sum` with Prometheus client dependencies.
45 lines
1.6 KiB
Modula-2
45 lines
1.6 KiB
Modula-2
module github.com/dalbodeule/hop-gate
|
|
|
|
go 1.25.4
|
|
|
|
require (
|
|
entgo.io/ent v0.14.5
|
|
github.com/go-acme/lego/v4 v4.28.1
|
|
github.com/google/uuid v1.6.0
|
|
github.com/lib/pq v1.10.9
|
|
github.com/pion/dtls/v3 v3.0.7
|
|
github.com/prometheus/client_golang v1.19.0
|
|
golang.org/x/net v0.47.0
|
|
)
|
|
|
|
require (
|
|
ariga.io/atlas v0.32.1-0.20250325101103-175b25e1c1b9 // indirect
|
|
github.com/agext/levenshtein v1.2.3 // indirect
|
|
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/bmatcuk/doublestar v1.3.4 // indirect
|
|
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/go-jose/go-jose/v4 v4.1.3 // indirect
|
|
github.com/go-openapi/inflect v0.19.0 // indirect
|
|
github.com/google/go-cmp v0.7.0 // indirect
|
|
github.com/hashicorp/hcl/v2 v2.18.1 // indirect
|
|
github.com/miekg/dns v1.1.68 // indirect
|
|
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
|
|
github.com/pion/logging v0.2.4 // indirect
|
|
github.com/pion/transport/v3 v3.0.7 // indirect
|
|
github.com/prometheus/client_model v0.5.0 // indirect
|
|
github.com/prometheus/common v0.48.0 // indirect
|
|
github.com/prometheus/procfs v0.12.0 // indirect
|
|
github.com/rogpeppe/go-internal v1.14.1 // indirect
|
|
github.com/zclconf/go-cty v1.14.4 // indirect
|
|
github.com/zclconf/go-cty-yaml v1.1.0 // indirect
|
|
golang.org/x/crypto v0.45.0 // indirect
|
|
golang.org/x/mod v0.29.0 // indirect
|
|
golang.org/x/sync v0.18.0 // indirect
|
|
golang.org/x/sys v0.38.0 // indirect
|
|
golang.org/x/text v0.31.0 // indirect
|
|
golang.org/x/tools v0.38.0 // indirect
|
|
google.golang.org/protobuf v1.36.10 // indirect
|
|
)
|