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

help request: 3.9 apisix no such metric as apisix_upstream_status #12022

Open
1450793561 opened this issue Mar 6, 2025 · 9 comments
Open

help request: 3.9 apisix no such metric as apisix_upstream_status #12022

1450793561 opened this issue Mar 6, 2025 · 9 comments
Labels
question label for questions asked by users

Comments

@1450793561
Copy link

Description

APISIX version: 3.9
After enabling the Prometheus plugin, there is no such metric as apisix_upstream_status.

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@1450793561
Copy link
Author

1450793561 commented Mar 6, 2025

@juzhiyuan juzhiyuan added the question label for questions asked by users label Mar 7, 2025
@kayx23
Copy link
Member

kayx23 commented Mar 10, 2025

Did you send any requests before checking?

@1450793561
Copy link
Author

Did you send any requests before checking?

Yes, we've sent a lot of requests and configured a lot of upstreams, and we've also configured health checks for the upstreams.

@1450793561
Copy link
Author

What is the mechanism of the "apisix_upstream_status" metric? Isn't it supposed to expose metrics if we configure upstream health checks?

@kayx23
Copy link
Member

kayx23 commented Mar 13, 2025

Isn't it supposed to expose metrics if we configure upstream health checks?

Yeah that's right https://docs.api7.ai/hub/prometheus#monitor-upstream-health-statuses

@1450793561
Copy link
Author

Isn't it supposed to expose metrics if we configure upstream health checks?

Yeah that's right https://docs.api7.ai/hub/prometheus#monitor-upstream-health-statuses

Yes, I think the official doesn't need to make any extra configurations. I've configured dozens of upstreams, but there's not a single apisix_upstream_status indicator, which is very strange.

@1450793561
Copy link
Author

Today, I saw a data in this indicator, which is apisix_upstream_status, but I didn't see any other upstream data.

Image

@kayx23
Copy link
Member

kayx23 commented Mar 14, 2025

apisix_upstream_status is the only upstream related metric. WDYM by other upstream data?

@1450793561
Copy link
Author

1450793561 commented Mar 17, 2025

apisix_upstream_status is the only upstream related metric. WDYM by other upstream data?

Oh, what I mean is that I can't see the health check status of other upstream nodes. I don't know why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question label for questions asked by users
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants