mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-08-29 04:01:01 +00:00
Fixed Promotheus issue related to adding tags (#6476)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user