Software /
code /
prosody
Diff
core/moduleapi.lua @ 13514:a1bc6533bbba
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 18 Aug 2024 17:01:47 +0200 |
parent | 13368:80a1ce9974e5 |
parent | 13513:2fb79fe54390 |
child | 13604:a4217361c1c6 |
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