Mercurial > prosody-hg
comparison core/statsmanager.lua @ 11575:76d32b2ca5eb
statsmanager: remove "legacy" wording
This was a leftover from when we (or rather I) thought that the
old (now called "high-level") API would be removed. We deemed it
useful though, so let's remove that "legacy" language and make
the description more friendly.
| author | Jonas Schäfer <jonas@wielicki.name> |
|---|---|
| date | Thu, 20 May 2021 14:03:01 +0200 |
| parents | 5f15ab7c6ae5 |
| children | ead41e25ebc0 |
comparison
equal
deleted
inserted
replaced
| 11574:21217f7e82b9 | 11575:76d32b2ca5eb |
|---|---|
| 81 end | 81 end |
| 82 return mf:with_labels() | 82 return mf:with_labels() |
| 83 end | 83 end |
| 84 | 84 |
| 85 local function unwrap_legacy_extra(extra, type_, name, unit) | 85 local function unwrap_legacy_extra(extra, type_, name, unit) |
| 86 local description = extra and extra.description or "Legacy "..type_.." metric "..name | 86 local description = extra and extra.description or name.." "..type_ |
| 87 unit = extra and extra.unit or unit | 87 unit = extra and extra.unit or unit |
| 88 return description, unit | 88 return description, unit |
| 89 end | 89 end |
| 90 | 90 |
| 91 -- These wrappers provide the pre-OpenMetrics interface of statsmanager | 91 -- These wrappers provide the pre-OpenMetrics interface of statsmanager |
