From 627e465232cc1667086c1df899b5e96d1d82904c Mon Sep 17 00:00:00 2001 From: Igor Zolotarev Date: Fri, 30 Jul 2021 20:48:08 +0300 Subject: [PATCH] Suggestions from code review --- cartridge/roles/metrics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cartridge/roles/metrics.lua b/cartridge/roles/metrics.lua index 7c3d018b..a882fd64 100644 --- a/cartridge/roles/metrics.lua +++ b/cartridge/roles/metrics.lua @@ -149,6 +149,7 @@ end local function apply_config(conf) local metrics_conf = conf.metrics or {} metrics_conf.export = metrics_conf.export or {} + set_labels(metrics_conf['global-labels']) local paths = format_paths(metrics_conf.export) metrics_vars.config = table.copy(paths) for path, format in pairs(metrics_vars.default) do @@ -158,7 +159,6 @@ local function apply_config(conf) end apply_routes(paths) metrics.enable_default_metrics(metrics_conf.include, metrics_conf.exclude) - set_labels(metrics_conf['global-labels']) end local function set_export(export)