Skip to content

Commit 627e465

Browse files
Suggestions from code review
1 parent 0af589d commit 627e465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cartridge/roles/metrics.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ end
149149
local function apply_config(conf)
150150
local metrics_conf = conf.metrics or {}
151151
metrics_conf.export = metrics_conf.export or {}
152+
set_labels(metrics_conf['global-labels'])
152153
local paths = format_paths(metrics_conf.export)
153154
metrics_vars.config = table.copy(paths)
154155
for path, format in pairs(metrics_vars.default) do
@@ -158,7 +159,6 @@ local function apply_config(conf)
158159
end
159160
apply_routes(paths)
160161
metrics.enable_default_metrics(metrics_conf.include, metrics_conf.exclude)
161-
set_labels(metrics_conf['global-labels'])
162162
end
163163

164164
local function set_export(export)

0 commit comments

Comments
 (0)