metrics
This commit is contained in:
@@ -19,8 +19,6 @@ import (
|
||||
"git.k6n.net/mats/platform/inventory"
|
||||
adyen "github.com/adyen/adyen-go-api-library/v21/src/adyen"
|
||||
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||
"go.opentelemetry.io/contrib/bridges/otelslog"
|
||||
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
||||
"google.golang.org/protobuf/proto"
|
||||
@@ -33,16 +31,13 @@ import (
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
var (
|
||||
grainMutations = promauto.NewCounter(prometheus.CounterOpts{
|
||||
Name: "checkout_grain_mutations_total",
|
||||
Help: "The total number of mutations",
|
||||
})
|
||||
grainLookups = promauto.NewCounter(prometheus.CounterOpts{
|
||||
Name: "checkout_grain_lookups_total",
|
||||
Help: "The total number of lookups",
|
||||
})
|
||||
)
|
||||
// Pool metrics (checkout_grain_spawned_total, checkout_grain_lookups_total,
|
||||
// checkout_mutations_total, checkout_remote_negotiation_total,
|
||||
// checkout_connected_remotes, …) are bumped centrally by
|
||||
// SimpleGrainPool — see pkg/actor/simple_grain_pool.go. The checkout
|
||||
// Metrics is registered once in cmd/checkout/main.go and shared with
|
||||
// DiskStorage via SetMetrics, so the per-handler counters this file
|
||||
// used to maintain are no longer needed.
|
||||
|
||||
type CheckoutPoolServer struct {
|
||||
actor.GrainPool[checkout.CheckoutGrain]
|
||||
|
||||
Reference in New Issue
Block a user