是否可以在普罗米修斯度量或计数器中重命名标签?

时间:2018-10-11 00:17:26

标签: label counter metrics prometheus

如果度量标准和计数器最初是使用某些标签定义的。以后可以重命名吗?

例如: 下面是初始定义:

  auto& counter_family = BuildCounter()
                             .Name("time_running_seconds")
                             .Help("How many seconds is this server running?")
                             .Labels({{"label", "value"}})
                             .Register(*registry);

  // add a counter to the metric family
  auto& second_counter = counter_family.Add(
      {{"another_label", "value"}, {"yet_another_label", "value"}});

是否可以在second_counter中将another_label更改为new_label?

0 个答案:

没有答案