Skip to content

[Push monitor] Fix: Prometheus update with incorrect value#6436

Merged
louislam merged 3 commits intomasterfrom
dev-fix-prom
Nov 28, 2025
Merged

[Push monitor] Fix: Prometheus update with incorrect value#6436
louislam merged 3 commits intomasterfrom
dev-fix-prom

Conversation

@louislam
Copy link
Owner

Close: #6430

I think it is not the first time, monitors are broken by Prometheus. Let's try-catch to avoid it in the future.

…catch to avoid break the monitor in the future.

this.prometheus = new Prometheus(this, await this.getTags());
try {
this.prometheus = new Prometheus(this, await this.getTags());
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is safe to not initialized.

I have checked all calls, they have syntax like this: this.prometheus?.update(null, tlsInfo);

Image

@louislam louislam marked this pull request as ready for review November 28, 2025 12:28
Copilot AI review requested due to automatic review settings November 28, 2025 12:28

This comment was marked as resolved.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@louislam louislam enabled auto-merge (squash) November 28, 2025 12:37
@louislam louislam merged commit f4ff234 into master Nov 28, 2025
20 checks passed
@louislam louislam deleted the dev-fix-prom branch November 28, 2025 17:22
@CommanderStorm CommanderStorm added this to the 2.1.0 milestone Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Found some issues in nightly2

3 participants