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.
Click to show internal directories.
Click to hide internal directories.