* Enable promlinter * Rename archives metric and update dashboard, linter Co-authored-by: shaunak_deshmukh <shaunak@infracloud.io>
25 lines
518 B
Go
25 lines
518 B
Go
package storagesvc
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
functionLabels = []string{}
|
|
totalArchives = promauto.NewGaugeVec(
|
|
prometheus.GaugeOpts{
|
|
Name: "fission_archives",
|
|
Help: "Number of archives stored",
|
|
},
|
|
functionLabels,
|
|
)
|
|
totalMemoryUsage = promauto.NewGaugeVec(
|
|
prometheus.GaugeOpts{
|
|
Name: "fission_archive_memory_bytes",
|
|
Help: "Amount of memory consumed by archives",
|
|
},
|
|
functionLabels,
|
|
)
|
|
)
|