istio-proxy metrics

获取 istio-proxy 的metrics
curl -vo /tmp/istio http://192.168.1.100:15090/stats/prometheus

由于metrics内容过多,服务器端断开下载连接:

获取 istio-proxy 的metrics失败,原因是metrics过大
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 192.168.1.100:15090...
* Connected to 192.168.1.100 (192.168.1.100) port 15090 (#0)
> GET /stats/prometheus HTTP/1.1
> Host: 192.168.1.100:15090
> User-Agent: curl/7.88.1
> Accept: */*
>
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0< HTTP/1.1 200 OK
< content-type: text/plain; charset=UTF-8
< cache-control: no-cache, max-age=0
< x-content-type-options: nosniff
< date: Wed, 05 Jul 2023 09:52:57 GMT
< server: envoy
< x-envoy-upstream-service-time: 3428
< transfer-encoding: chunked
<
{ [2650 bytes data]
100 46.6M    0 46.6M    0     0  2911k      0 --:--:--  0:00:16 --:--:-- 3550k* transfer closed with outstanding read data remaining
100 46.6M    0 46.6M    0     0  2911k      0 --:--:--  0:00:16 --:--:-- 3484k
* Closing connection 0
curl: (18) transfer closed with outstanding read data remaining

参考