Revert "Extend Prometheus Labels to include tags (requires restart for NEW labels on the monitor to be visible)" (#5174)

This commit is contained in:
Louis Lam 2024-10-09 07:17:11 +08:00 committed by GitHub
parent 59e70cb763
commit 4829ad8c5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 110 deletions

View file

@ -326,7 +326,7 @@ class Monitor extends BeanModel {
let previousBeat = null;
let retries = 0;
this.prometheus = await Prometheus.createAndInitMetrics(this);
this.prometheus = new Prometheus(this);
const beat = async () => {
@ -978,7 +978,7 @@ class Monitor extends BeanModel {
await R.store(bean);
log.debug("monitor", `[${this.name}] prometheus.update`);
await this.prometheus?.update(bean, tlsInfo);
this.prometheus?.update(bean, tlsInfo);
previousBeat = bean;