Fix "expected label name, got \"BCLOSE\"" error#846
Fix "expected label name, got \"BCLOSE\"" error#846wangkaish wants to merge 1 commit intoprometheus:mainfrom
Conversation
Signed-off-by: wangkaish <wangkaicloud@163.com>
|
Thanks for the PR. I don't think the trailing comma was the root cause of your issue.
Anyway, there have been a lot of discussions around this, and I think the current implementation won't change. However, there is work on a re-implementation of the metrics library which won't have the trailing commas, it's currently being developed on the |
|
Hi @fstab, You are right, the real reason is not more comma at the end of the value. I updated Spring 2.5.1 to 2.7.11 and then Prometheus started prompting BCLOSE, The Tomcat versions used by these two Spring versions are 9.0.46 and 9.0.74, the response Content-Type is |
My prometheus(2.33.4) request metrics got "expected label name, got "BCLOSE"", I try update response content
{a="1", }to{a="1"}then the problem fixed.