Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Auth metrics UserLoginTotal = promauto.NewCounter(prometheus.CounterOpts{ Name: "justflow_user_login_total", Help: "Total number of user logins (JWT generation)", }) // Execution metrics ExecutionFinishedTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: "justflow_execution_finished_total", Help: "Total number of finished executions", }, []string{"status", "flow_id"}) ExecutionDurationSeconds = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "justflow_execution_duration_seconds", Help: "Duration of flow executions in seconds", Buckets: prometheus.ExponentialBuckets(1, 2, 10), }, []string{"status", "flow_id"}) // Background check metrics BackgroundCheckDurationSeconds = promauto.NewHistogramVec(prometheus.HistogramOpts{ Name: "justflow_background_check_duration_seconds", Help: "Duration of background checks in seconds", Buckets: prometheus.DefBuckets, }, []string{"check_name"}) )
View Source
var ( FlowExecutionsTotal = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "flow_executions_total", Help: "Total number of flow executions triggered", }, []string{"status", "flow_id"}, ) )
Functions ¶
func InitAppMetrics ¶
InitAppMetrics starts a background routine to update application metrics
func InitTracer ¶
func InitTracer(ctx context.Context, serviceName string, collectorURL string) (func(context.Context) error, error)
InitTracer initializes the OpenTelemetry tracer provider
func RegisterDBMetrics ¶
RegisterDBMetrics registers database metrics
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.