You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you see instead? Under which circumstances?
Panic and stack trace during a call to /metrics before startup finished (that the upstream Prometheus server called /metrics despite Prometheus not having signalled ready appears to be a bug in our service discovery in that setup) {"caller":"web.go:99","client":"10.86.14.4:43362","component":"web","err":"runtime error: invalid memory address or nil pointer dereference","level":"error","msg":"panic while serving request","stack":"<see decoded stack below>","url":"/metrics"}
I think what I mentioned above is the thing, we register before we assign head, and it panics. The solution is as simple as registering after assigning head block (but before WAL replay).
What did you do?
Restart Prometheus
What did you expect to see?
Clean startup
What did you see instead? Under which circumstances?
Panic and stack trace during a call to /metrics before startup finished (that the upstream Prometheus server called /metrics despite Prometheus not having signalled ready appears to be a bug in our service discovery in that setup)
{"caller":"web.go:99","client":"10.86.14.4:43362","component":"web","err":"runtime error: invalid memory address or nil pointer dereference","level":"error","msg":"panic while serving request","stack":"<see decoded stack below>","url":"/metrics"}
Full logs supplied below, here's the stack:
Environment
System information:
Linux 4.14.138+ x86_64 (Container running on Google Kubernetes Engine)
Prometheus version:
prometheus, version 2.19.1 (branch: HEAD, revision: eba3fdc)
build user: root@62700b3d0ef9
build date: 20200618-16:35:26
go version: go1.14.4
Logs
The text was updated successfully, but these errors were encountered: