package metrics

import (
	"github.com/prometheus/client_golang/prometheus"
	"sigs.k8s.io/controller-runtime/pkg/metrics"
)

const keyspaceComponent = "keyspace"

var (
	KeyspaceAvailable = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Subsystem: keyspaceComponent,
			Name:      "available",
			Help:      "Gauge of available keyspace",
		},
		[]string{"pool_ns"},
	)
)

func init() {
	// Register custom metrics with the global prometheus registry
	metrics.Registry.MustRegister(KeyspaceAvailable)
}
