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

Cannot See Multiprocess metric under /metric page while suing multiple workers #227

Closed
liyunrui opened this issue Mar 7, 2023 · 1 comment · Fixed by #229
Closed

Cannot See Multiprocess metric under /metric page while suing multiple workers #227

liyunrui opened this issue Mar 7, 2023 · 1 comment · Fixed by #229

Comments

@liyunrui
Copy link

liyunrui commented Mar 7, 2023

Basically, there are two weird things while loading /metric page

  1. I can see two lines of http_requests_total{handler="/metrics",method="GET",status="2xx"} 33.0. And, it looks like one is not correct. Then, I think this problem related to Strange drops in total requests #50

# HELP http_requests_total Total number of requests by method, status and handler.
# TYPE http_requests_total counter
http_requests_total{handler="/metrics",method="GET",status="2xx"} 33.0
# HELP http_request_size_bytes Content length of incoming requests by handler. Only value of header is respected. Otherwise ignored. No percentile calculated. 
# TYPE http_request_size_bytes summary
http_request_size_bytes_count{handler="/metrics"} 33.0
http_request_size_bytes_sum{handler="/metrics"} 0.0
# HELP http_response_size_bytes Content length of outgoing responses by handler. Only value of header is respected. Otherwise ignored. No percentile calculated. 
# TYPE http_response_size_bytes summary
http_response_size_bytes_count{handler="/metrics"} 33.0
http_response_size_bytes_sum{handler="/metrics"} 235523.0
# HELP http_requests_total Total number of requests by method, status and handler.
# TYPE http_requests_total counter
http_requests_total{handler="/metrics",method="GET",status="2xx"} 7.0
  1. Second strange thing is I already provide PROMETHEUS_MULTIPROC_DIR=/tmp/prometheus-fastapi-instrumentator/multiproc. However, I cannot see Multiprocess metric under /metric page

It would be appreciated any feedback about is this fixed already or any alternative solutin.
Appreciated.

@trallnag

@liyunrui
Copy link
Author

liyunrui commented Mar 7, 2023

image

I put the screenshot that I already go inside the container to double check if PROMETHEUS_MULTIPROC_DIR is successfully created. Hope this information helps troubleshhot

@liyunrui liyunrui changed the title Cannot See Multiprocess metric under /metric page while using multi-workers!=8 Cannot See Multiprocess metric under /metric page while suing multiple workers Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant