2025-04-01 10:38:02 +09:00

24 lines
467 B
Go

package metric
import (
"github.com/prometheus/client_golang/prometheus"
)
const (
namespace = "grafana"
)
type Metrics struct {
PublicDashboardsAmount *prometheus.GaugeVec
}
func newMetrics() *Metrics {
return &Metrics{
PublicDashboardsAmount: prometheus.NewGaugeVec(prometheus.GaugeOpts{
Namespace: namespace,
Name: "public_dashboards_amount",
Help: "Total amount of public dashboards",
}, []string{"is_enabled", "share_type"}),
}
}