metrics

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MonitorSuccess = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "healthcheck_success_count",
		Help: "The total number of successful healthcheck resources",
	},
		[]string{hcName, wf},
	)
	MonitorError = prometheus.NewCounterVec(prometheus.CounterOpts{
		Name: "healthcheck_error_count",
		Help: "The total number of errored healthcheck resources",
	},
		[]string{hcName, wf},
	)
	MonitorRuntime = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "healthcheck_runtime_seconds",
		Help: "Time taken for the workflow to complete.",
	},
		[]string{hcName, wf},
	)
	MonitorStartedTime = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "healthcheck_starttime",
		Help: "Time taken for the workflow to complete.",
	},
		[]string{hcName, wf},
	)
	MonitorFinishedTime = prometheus.NewGaugeVec(prometheus.GaugeOpts{
		Name: "healthcheck_finishedtime",
		Help: "Time taken for the workflow to complete.",
	},
		[]string{hcName, wf},
	)

	CustomGaugeMetricsMap = make(map[string]*prometheus.GaugeVec)
)

MonitorProcessed will be used to track the number of processed events

Functions

func CreateDynamicPrometheusMetric

func CreateDynamicPrometheusMetric(name string, workflowStatus *wfv1.WorkflowStatus, registry *prometheus.Registry)

CreateDynamicPrometheusMetric initializes and registers custom metrics dynamically

Types

This section is empty.

Jump to

Keyboard shortcuts

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