join pipelines_total.

This commit is contained in:
Miroslav Šedivý 2022-06-19 00:51:17 +02:00
parent ef7e9b1a53
commit 5ab4848580
4 changed files with 47 additions and 21 deletions

View file

@ -55,16 +55,22 @@ func screencastNew(enabled bool, pipelineStr string) *ScreencastManagerCtx {
// metrics
imagesCounter: promauto.NewCounter(prometheus.CounterOpts{
Name: "images_total",
Name: "screencast_images_total",
Namespace: "neko",
Subsystem: "capture_screencast",
Subsystem: "capture",
Help: "Total number of created images.",
}),
pipelinesCounter: promauto.NewCounter(prometheus.CounterOpts{
Name: "pipelines_total",
Namespace: "neko",
Subsystem: "capture_screencast",
Subsystem: "capture",
Help: "Total number of created pipelines.",
ConstLabels: map[string]string{
"submodule": "screencast",
"video_id": "main",
"codec_name": "-",
"codec_type": "-",
},
}),
}