Documentation
¶
Index ¶
Constants ¶
View Source
const ( Namespace = "openstack" Subsystem = "sharev2" )
Variables ¶
This section is empty.
Functions ¶
func RegisterCollectors ¶
func RegisterCollectors(registry *prometheus.Registry, databaseURL string, logger *slog.Logger)
Types ¶
type SharesCollector ¶
type SharesCollector struct {
// contains filtered or unexported fields
}
func NewSharesCollector ¶
func NewSharesCollector(db *sql.DB, logger *slog.Logger) *SharesCollector
func (*SharesCollector) Collect ¶
func (c *SharesCollector) Collect(ch chan<- prometheus.Metric)
func (*SharesCollector) Describe ¶
func (c *SharesCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.