mirror of
https://github.com/hanzoai/functions.git
synced 2026-10-30 15:04:37 +00:00
Module github.com/fission/fission -> github.com/hanzoai/functions (288 files). CRD API group fission.io -> hanzo.ai (67 files): functions.hanzo.ai, environments.hanzo.ai, httptriggers.hanzo.ai, messagequeuetriggers.hanzo.ai, joining apps.hanzo.ai under the one house group. Doc URLs preserved. Builds green. Matches the cloud contract: clients/functions, /v1/functions, App CR role "function". Remaining: fork the env images + the live CRD-group migration (demo-only today, low risk).
32 lines
640 B
Go
32 lines
640 B
Go
package storagesvc
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
|
|
"github.com/hanzoai/functions/pkg/utils/metrics"
|
|
)
|
|
|
|
var (
|
|
functionLabels = []string{}
|
|
totalArchives = prometheus.NewGaugeVec(
|
|
prometheus.GaugeOpts{
|
|
Name: "fission_archives",
|
|
Help: "Number of archives stored",
|
|
},
|
|
functionLabels,
|
|
)
|
|
totalMemoryUsage = prometheus.NewGaugeVec(
|
|
prometheus.GaugeOpts{
|
|
Name: "fission_archive_memory_bytes",
|
|
Help: "Amount of memory consumed by archives",
|
|
},
|
|
functionLabels,
|
|
)
|
|
)
|
|
|
|
func init() {
|
|
registry := metrics.Registry
|
|
registry.MustRegister(totalArchives)
|
|
registry.MustRegister(totalMemoryUsage)
|
|
}
|