如何为 kubernetes nginx-ingress 启用 vts 仪表板?
How to enable vts dashboard for kubernetes nginx-ingress?
我无法显示 kubernetes nginx-ingress vts 仪表板。
我正在使用此 helm 图表的 1.3.1 版部署我的 nginx-ingress:https://github.com/helm/charts/tree/master/stable/nginx-ingress
我尝试了几种启用 vts 指标的方法,并最终得到了这个配置:
nginx-ingress:
controller:
config:
enable-vts-status: "true"
location-snippets: "vhost_traffic_status_display;\nvhost_traffic_status_display_format html;"
service:
type: NodePort
nodePorts:
http: 30972
stats:
enabled: true
metrics:
enabled: true
serviceMonitor:
enabled: true
additionalLabels:
prometheus: kube-prometheus
defaultBackend:
enabled: false
基于 docs,controller.stats.enabled
设置应该是启用仪表板所需的全部设置:
controller.stats.enabled
if true, enable "vts-status" page
但是,由于这不起作用,我还尝试将 enable-vts-status: "true"
设置添加到配置中,当它不起作用时,尝试将所需的设置直接注入位置片段。
我可以访问 vts 仪表板应该可用的端点,但它只显示简化版本:
Active connections: 3
server accepts handled requests
87 87 115
Reading: 0 Writing: 1 Waiting: 2
我希望在 https://github.com/vozlt/nginx-module-vts 看到完整的 html 输出详细信息
我的设置:
NAME READY STATUS RESTARTS AGE
pod/nginx-ingress-controller-6b4496d857-9kmnl 1/1 Running 0 18m
pod/nginx-ingress-controller-6b4496d857-qkc8n 1/1 Running 0 18m
pod/nginx-ingress-controller-6b4496d857-rfk82 1/1 Running 0 18m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/nginx-ingress-controller NodePort 10.xxx.xx.xx <none> 80:30972/TCP,443:32177/TCP 130d
service/nginx-ingress-controller-metrics ClusterIP 10.xx.xx.xxx <none> 9913/TCP 1d
service/nginx-ingress-controller-stats ClusterIP 10.xxx.xx.xx <none> 18080/TCP 1d
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deployment.apps/nginx-ingress-controller 3 3 3 3 130d
NAME DESIRED CURRENT READY AGE
replicaset.apps/nginx-ingress-controller-6b4496d857 3 3 3 1d
vts 模块似乎已在 v0.16.0 中删除https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.16.0
我无法显示 kubernetes nginx-ingress vts 仪表板。
我正在使用此 helm 图表的 1.3.1 版部署我的 nginx-ingress:https://github.com/helm/charts/tree/master/stable/nginx-ingress
我尝试了几种启用 vts 指标的方法,并最终得到了这个配置:
nginx-ingress:
controller:
config:
enable-vts-status: "true"
location-snippets: "vhost_traffic_status_display;\nvhost_traffic_status_display_format html;"
service:
type: NodePort
nodePorts:
http: 30972
stats:
enabled: true
metrics:
enabled: true
serviceMonitor:
enabled: true
additionalLabels:
prometheus: kube-prometheus
defaultBackend:
enabled: false
基于 docs,controller.stats.enabled
设置应该是启用仪表板所需的全部设置:
controller.stats.enabled
if true, enable "vts-status" page
但是,由于这不起作用,我还尝试将 enable-vts-status: "true"
设置添加到配置中,当它不起作用时,尝试将所需的设置直接注入位置片段。
我可以访问 vts 仪表板应该可用的端点,但它只显示简化版本:
Active connections: 3
server accepts handled requests
87 87 115
Reading: 0 Writing: 1 Waiting: 2
我希望在 https://github.com/vozlt/nginx-module-vts 看到完整的 html 输出详细信息
我的设置:
NAME READY STATUS RESTARTS AGE
pod/nginx-ingress-controller-6b4496d857-9kmnl 1/1 Running 0 18m
pod/nginx-ingress-controller-6b4496d857-qkc8n 1/1 Running 0 18m
pod/nginx-ingress-controller-6b4496d857-rfk82 1/1 Running 0 18m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/nginx-ingress-controller NodePort 10.xxx.xx.xx <none> 80:30972/TCP,443:32177/TCP 130d
service/nginx-ingress-controller-metrics ClusterIP 10.xx.xx.xxx <none> 9913/TCP 1d
service/nginx-ingress-controller-stats ClusterIP 10.xxx.xx.xx <none> 18080/TCP 1d
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
deployment.apps/nginx-ingress-controller 3 3 3 3 130d
NAME DESIRED CURRENT READY AGE
replicaset.apps/nginx-ingress-controller-6b4496d857 3 3 3 1d
vts 模块似乎已在 v0.16.0 中删除https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.16.0