Fixed Promotheus issue related to adding tags (#6476)
This commit is contained in:
parent
2a687ab67a
commit
d6c4eeaa1d
@ -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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user