Fixed Promotheus issue related to adding tags (#6476)

This commit is contained in:
iotux 2025-12-13 10:16:14 +01:00
parent 2a687ab67a
commit d6c4eeaa1d

View File

@ -34,6 +34,7 @@ class Prometheus {
* @returns {Promise<void>}
*/
static async init() {
PrometheusClient.register.clear();
// Add all available tags as possible labels,
// and use Set to remove possible duplicates (for when multiple tags contain non-ascii characters, and thus are sanitized to the same label)
const tags = new Set((await R.findAll("tag")).map((tag) => {