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

Queries failing after upgrade to v2.52.0rc0 #14011

Closed
swiffer opened this issue Apr 30, 2024 · 5 comments
Closed

Queries failing after upgrade to v2.52.0rc0 #14011

swiffer opened this issue Apr 30, 2024 · 5 comments

Comments

@swiffer
Copy link

swiffer commented Apr 30, 2024

What did you do?

Upgrade to v2.52.0rc0

What did you expect to see?

Everything continues working just fine

What did you see instead? Under which circumstances?

Several queries failing (e.g. on Node Exporter Full Dashboard):

Status: 200. Message: ReadArray: expect [ or , or ] or n, but found {, error found in #10 byte of ...|80116"]]}{"metric":{|..., bigger context ...|923262980116"],[1714483080,"47.15923262980116"]]}{"metric":{"device":"/dev/nvme1n1p1","fstype":"vfat|...

Query:

100 - ((node_filesystem_avail_bytes{instance="localhost:9100",job="node_exporter",device!'rootfs'} * 100) / node_filesystem_size_bytes{instance="localhost:9100",job="node_exporter",device!'rootfs'})

System information

Ubuntu 24.04 LTS (GNU/Linux 6.8.0-31-generic x86_64)

Prometheus version

prometheus, version 2.52.0-rc.0 (branch: HEAD, revision: f170a014f31cc97d2aba47cc769e846c68f8545d)
  build user:       root@969a4b73703c
  build date:       20240430-12:21:35
  go version:       go1.22.2
  platform:         linux/amd64
  tags:             netgo,builtinassets,stringlabels

Prometheus configuration file

No response

Alertmanager version

No response

Alertmanager configuration file

No response

Logs

No response

@swiffer swiffer changed the title v2. Queries failing after upgrade to v2.52.0rc0 Apr 30, 2024
@ArthurSens
Copy link
Member

Thanks for trying the release candidate so quickly!

Could you please any additional information that could help us debug the problem, e.g. logs from the Prometheus instance that is failing

@swiffer
Copy link
Author

swiffer commented Apr 30, 2024

Sure, this is what I can see currently in the prometheus log file

ts=2024-04-30T14:09:19.769Z caller=api.go:1769 level=error component=web msg="error writing response" bytesWritten=0 err="write tcp 127.0.0.1:9090->127.0.0.1:43910: write: broken pipe"
ts=2024-04-30T14:09:19.778Z caller=api.go:1769 level=error component=web msg="error writing response" bytesWritten=0 err="write tcp 127.0.0.1:9090->127.0.0.1:43912: write: broken pipe"
ts=2024-04-30T14:09:40.963Z caller=api.go:1769 level=error component=web msg="error writing response" bytesWritten=0 err="write tcp 127.0.0.1:9090->127.0.0.1:37742: write: broken pipe"
ts=2024-04-30T14:09:40.972Z caller=api.go:1769 level=error component=web msg="error writing response" bytesWritten=0 err="write tcp 127.0.0.1:9090->127.0.0.1:37752: write: broken pipe"
ts=2024-04-30T14:09:49.962Z caller=api.go:1769 level=error component=web msg="error writing response" bytesWritten=0 err="write tcp 127.0.0.1:9090->127.0.0.1:43922: write: connection reset by peer"
ts=2024-04-30T14:09:49.980Z caller=api.go:1769 level=error component=web msg="error writing response" bytesWritten=0 err="write tcp 127.0.0.1:9090->127.0.0.1:37768: write: connection reset by peer"

(querying prometheus via grafana)

@GiedriusS
Copy link
Contributor

Is it the same if you send the same query through the Prometheus UI/API? If not, could you paste the error from the HTTP response?

@baryluk
Copy link

baryluk commented May 3, 2024

Looks like same bug as this:

#14040

Prometheus is returning malformed JSON

@swiffer
Copy link
Author

swiffer commented May 4, 2024

@swiffer swiffer closed this as completed May 4, 2024
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

No branches or pull requests

4 participants