metrics

package
v5.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GrafanaReconciles = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "grafana_operator",
		Subsystem: "reconciler",
		Name:      "reconciles",
		Help:      "reconciles per Grafana instance",
	}, []string{"instance_namespace", "instance_name"})

	GrafanaFailedReconciles = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "grafana_operator",
		Subsystem: "reconciler",
		Name:      "failed_reconciles",
		Help:      "failed reconciles per Grafana instance and stage",
	}, []string{"instance_namespace", "instance_name", "stage"})

	GrafanaAPIRequests = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "grafana_operator",
		Subsystem: "grafana_api",
		Name:      "requests",
		Help:      "requests against the grafana api per instance",
	}, []string{"instance_namespace", "instance_name", "method", "status"})

	// Deprecated: will be removed in a future version of the operator. Use
	// ContentURLRequests instead, which handles more types of resources that
	// directly utilize Grafana model JSON.
	DashboardURLRequests = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "grafana_operator",
		Subsystem: "dashboards",
		Name:      "requests",
		Help:      "requests to fetch dashboards from urls",
	}, []string{"dashboard", "method", "status"})

	ContentURLRequests = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "grafana_operator",
		Subsystem: "content",
		Name:      "requests",
		Help:      "requests to fetch model contents from urls",
	}, []string{"kind", "resource", "method", "status"})

	GrafanaComAPIRevisionRequests = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "grafana_operator",
		Name:      "revision_requests",
		Help:      "requests to list content revisions on grafana.com",
	}, []string{"kind", "resource", "method", "status"})

	InitialStatusSyncDuration = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "grafana_operator",
		Subsystem: "reconciler",
		Name:      "initial_sync_duration",
		Help:      "time in ms to sync statuses after operator restart",
	})

	// Deprecated: All Initial Sync Duration metrics have merged into a single metric
	InitialContactPointSyncDuration = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "grafana_operator",
		Subsystem: "contactpoints",
		Name:      "initial_sync_duration",
		Help:      "time in ms to sync contact-points after operator restart",
	})

	// Deprecated: All Initial Sync Duration metrics have merged into a single metric
	InitialDashboardSyncDuration = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "grafana_operator",
		Subsystem: "dashboards",
		Name:      "initial_sync_duration",
		Help:      "time in ms to sync dashboards after operator restart",
	})

	// Deprecated: All Initial Sync Duration metrics have merged into a single metric
	InitialLibraryPanelSyncDuration = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "grafana_operator",
		Subsystem: "librarypanels",
		Name:      "initial_sync_duration",
		Help:      "time in ms to sync library panels after operator restart",
	})

	// Deprecated: All Initial Sync Duration metrics have merged into a single metric
	InitialDatasourceSyncDuration = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "grafana_operator",
		Subsystem: "datasources",
		Name:      "initial_sync_duration",
		Help:      "time in ms to sync datasources after operator restart",
	})

	// Deprecated: All Initial Sync Duration metrics have merged into a single metric
	InitialFoldersSyncDuration = prometheus.NewGauge(prometheus.GaugeOpts{
		Namespace: "grafana_operator",
		Subsystem: "folders",
		Name:      "initial_sync_duration",
		Help:      "time in ms to sync folders after operator restart",
	})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL