feat: define a default duration for metrics update

Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
This commit is contained in:
Mario Constanti 2024-02-20 10:23:48 +01:00
parent 97f172eb51
commit 3e025dda2f
5 changed files with 57 additions and 8 deletions

View file

@ -10,6 +10,10 @@ var (
Subsystem: metricsPoolSubsystem,
Name: "info",
Help: "Info of the pool",
// ConstLabels: prometheus.Labels{
// "controller_id": metricControllerValue,
// "hostname": metricHostnameValue,
// },
}, []string{"id", "image", "flavor", "prefix", "os_type", "os_arch", "tags", "provider", "pool_owner", "pool_type"})
PoolStatus = prometheus.NewGaugeVec(prometheus.GaugeOpts{