[TrueCloudLab#29] Update billing metric label name

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
Denis Kirillov 2023-02-13 16:18:21 +03:00 committed by Alex Vanin
parent 787d1a347a
commit 8d9d1f9235

View file

@ -204,7 +204,7 @@ func (b *billingMetrics) Collect(ch chan<- prometheus.Metric) {
prometheus.NewDesc(
prometheus.BuildFQName(namespace, billingSubsystem, "user_traffic"),
"",
[]string{"user", "bucket", "cid", "type"}, nil),
[]string{"user", "bucket", "cid", "direction"}, nil),
prometheus.CounterValue,
float64(value.Value),
value.User,