# HG changeset patch # User Kim Alvefur # Date 1723993307 -7200 # Node ID a1bc6533bbba40e042b6e10f6d927eb75cfcb948 # Parent 0b742bbbb819cff2d0f6fc2a899d81b3f3aa357d# Parent 2fb79fe5439051db94d9de3e1152bac8bd89209a Merge 0.12->trunk diff -r 0b742bbbb819 -r a1bc6533bbba core/moduleapi.lua --- a/core/moduleapi.lua Sun Aug 18 16:56:36 2024 +0200 +++ b/core/moduleapi.lua Sun Aug 18 17:01:47 2024 +0200 @@ -653,6 +653,7 @@ function api:metric(type_, name, unit, description, label_keys, conf) local metric = require "prosody.core.statsmanager".metric; local is_scoped = self.host ~= "*" + label_keys = label_keys or {}; if is_scoped then -- prepend `host` label to label keys if this is not a global module local orig_labels = label_keys