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

Fix prometheus warning message #5932

Merged
merged 1 commit into from
May 15, 2024

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented May 15, 2024

What changed?

Fix prometheus warning message by adding namespace tag.

{"level":"warn","ts":"2024-05-14T15:14:32.598-0700","msg":"error in prometheus reporter","error":"a previously registered descriptor with the same fully-qualified name as Desc{fqName: \"AccessHistoryNew\", help: \"AccessHistoryNew counter\", constLabels: {}, variableLabels: {operation,namespace,service_name}} has different label names or a different help string","logging-call-at":"config.go:432"}

Note: code will be removed very soon.

Why?

Set of tags must be the same on the same metric. I hope it fixes #5897.

How did you test it?

Run it locally and checked logs with eyeballing.

@alexshtin alexshtin requested a review from a team as a code owner May 15, 2024 01:04
@alexshtin alexshtin merged commit 6e49116 into temporalio:main May 15, 2024
42 checks passed
@alexshtin alexshtin deleted the fix/metrics-warrning branch May 15, 2024 17:50
ychebotarev pushed a commit to ychebotarev/temporal that referenced this pull request May 16, 2024
## What changed?
<!-- Describe what has changed in this PR -->
Fix prometheus warning message by adding `namespace` tag.

```
{"level":"warn","ts":"2024-05-14T15:14:32.598-0700","msg":"error in prometheus reporter","error":"a previously registered descriptor with the same fully-qualified name as Desc{fqName: \"AccessHistoryNew\", help: \"AccessHistoryNew counter\", constLabels: {}, variableLabels: {operation,namespace,service_name}} has different label names or a different help string","logging-call-at":"config.go:432"}
```

Note: code will be removed very soon.

## Why?
<!-- Tell your future self why have you made these changes -->
Set of tags must be the same on the same metric. I hope it fixes temporalio#5897.

## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Run it locally and checked logs with eyeballing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"error in prometheus reporter" warnings in Temporal Server 1.23.0 (CLI version 0.12.0)
4 participants