mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete * 2.1.0 main node rollup
30 lines
869 B
Go
30 lines
869 B
Go
package manager
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
// Execution engine metrics
|
|
executionRequestsTotal = promauto.NewCounterVec(
|
|
prometheus.CounterOpts{
|
|
Namespace: "quilibrium",
|
|
Subsystem: "execution_manager",
|
|
Name: "requests_total",
|
|
Help: "Total number of execution requests processed",
|
|
},
|
|
[]string{"engine", "status"}, // engine: global/compute/token/hypergraph, status: success/error
|
|
)
|
|
|
|
executionRequestDuration = promauto.NewHistogramVec(
|
|
prometheus.HistogramOpts{
|
|
Namespace: "quilibrium",
|
|
Subsystem: "execution_manager",
|
|
Name: "request_duration_seconds",
|
|
Help: "Duration of execution request processing",
|
|
Buckets: prometheus.DefBuckets,
|
|
},
|
|
[]string{"engine"}, // engine: global/compute/token/hypergraph
|
|
)
|
|
) |