Software /
code /
prosody
Changeset
13514:a1bc6533bbba
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Aug 2024 17:01:47 +0200 |
parents | 13512:0b742bbbb819 (current diff) 13513:2fb79fe54390 (diff) |
children | 13516:078780f262d5 |
files | core/moduleapi.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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