Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a fix for prometheusDuplicateTimestamp error #8370

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

achouhan09
Copy link
Member

@achouhan09 achouhan09 commented Sep 16, 2024

Explain the changes

PrometheusDuplicateTimestamps is a type of warning or error in Prometheus indicating that multiple samples with the same timestamp but different values were encountered.

The nodejs report was generating default metrics that were overlapping with those from the core report. This overlap led to metrics with identical timestamps but different values being ingested by Prometheus, causing the warnings.

Solution: We are creating a new registry for collecting all the default metrics for nodejs.

Read About prom-client

Before changes:
Screenshot from 2024-09-23 15-25-53

After fixes:
Screenshot from 2024-09-23 15-20-49

Issues: Fixed #xxx / Gap #xxx

  1. BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2304076

Testing Instructions:

  1. After installing noobaa should check for duplicate metrics using command : kubectl exec -it noobaa-core-0 -- curl localhost:8080/metrics/web_server | grep NooBaa_odf_health_status

Copy link
Contributor

@naveenpaul1 naveenpaul1 left a comment

Choose a reason for hiding this comment

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

LGTM

@achouhan09 achouhan09 merged commit 8860143 into noobaa:master Sep 24, 2024
10 checks passed
@achouhan09 achouhan09 deleted the prometheus_fix branch September 25, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants