feature: support showing apisix cluster node information#962
Conversation
|
@agile6v We can not to use |
|
Hi @membphis I realized that Thanks. |
|
how about adding these data in the Prometheus plugin? Or send to elk? |
|
I don't think it's a good choice to introduce a heavy component. I want to split this feature and first implement the |
|
how about reusing the API in the Prometheus plugin: https://github.com/apache/incubator-apisix/blob/master/lua/apisix/plugins/prometheus.lua#L52? This way will not introduce Prometheus, you can use any component to call this API. |
The |
|
@agile6v what's your opinion? |
|
@agile6v Of course, it can be implemented in |
OK. I will implement it ASAP. |
|
@agile6v do you want to continue work on this issue or we can close this PR first? |
|
OK. Recently learned about the implementation of k8s-ingress. It should be what we want. |

Summary
Full changelog
Added the /apisix/cluster path in etcd and a timer in node-status plugin. The timer is triggered to update the node information every 5 seconds. The information of all apisix nodes will be recored in the /apisix/cluster path, which can be showed via /apisix/admin/cluster api.
Related to #459