Skip to content

Commit

Permalink
Suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Jul 30, 2021
1 parent 0af589d commit 627e465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartridge/roles/metrics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 627e465

Please sign in to comment.