-
Notifications
You must be signed in to change notification settings - Fork 99
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
panic: duplicate label names #85
Comments
I wonder if this is a side effect of #50 |
Having the exact same issue here, testing version 0.6.0 and it is not reproduce-able - so it's probably either 0.7.0 or 0.8.0 (0.7.0 introduce #50) |
Can you try building and running with #50 reverted? |
Still crash with the same error: panic: duplicate label names goroutine 99 [running]: |
So I guess it's not #50 then, something else with the client_golang upgrade. |
Can you include more details? Like the flags you're using with the exporter? |
Please find my setup bellow. I was having the duplicates panic issues with
|
Same issue here with v0.9.1:
Edit 2020/07/14 I can confirm that the issue is still present in v0.10.0:
|
So I've debugged it as I have the same case. The root cause of the problem is when you have defined custom metrics based on logs with some extractors and these extractors load the same labels as are injected by default by GCP logging Example: Workaround: delete your custom extractors which are technically not needed Edit: |
So we had the exact same issue as above having duplicated the
I think it'd make sense to make the exporter more robust and only report duplicate labels on the cli and export an error metric instead. EDIT: Same issue as in: #103 |
We finally solved this by going over all our log-based metrics. Took a while, as we have quite a few, but we removed the duplicate labels and have not had any problem since. |
I've opened a PR #153 which should fix this. Can someone review it and merge it if possible? |
Still seeing this issue, however not getting a panic in the container logs. It shows up on /metrics page. I tried @jakubbujny suggestion of removing the label and label extractors but that didnt work. Trying to scrape log-based metric for gke human initiated admin event that is a counter type: |
Looks like the exporter crashes when a metric has duplicate label names.
It seems like something introduced in v0.7.0 as I don't see the same issue in v0.6.0
The text was updated successfully, but these errors were encountered: