package metric

import "github.com/prometheus/client_golang/prometheus"

func init() {
	prometheus.MustRegister(
		ExportRunningDurationSeconds,
		ExportTerminalStateTotal,
	)
}

var (
	ExportRunningDurationSeconds = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "export_running_duration_seconds",
			Help: "Current running duration of export executions. Removed when the export reaches a terminal state.",
		},
		[]string{"cluster_id", "export_id"},
	)

	ExportTerminalStateTotal = prometheus.NewCounterVec(
		prometheus.CounterOpts{
			Name: "export_terminal_state_total",
			Help: "Total number of exports completed with success or failure.",
		},
		[]string{"cluster_id", "export_id", "state"},
	)
)
