I am new to linkerd and trying to proxy all the requests to my microservices via linkerd and with file based service discovery. I was able to do it successfully and the requests successfully got registered with the admin dashboard running on port 9990.
But my problem is the dashboard always shows N/A for the success rate and failure rate. It becomes 100% for just a sec the request is received and again goes back to N/A. But I want to keep track of all my request via linkerd i.e I want linkerd to remember the number of requests and the successrate and failure rate.
Here is the screenshot of my problem
答案 0 :(得分:1)
Linkerd community forum回答了这个问题。为了完整起见,在这里添加答案:
仪表板提供当前正在进行的快照 - 它每秒轮询/admin/metrics.json并显示当时的指标(因此在那一刻,有多少请求,重试,待处理请求,所以如果那一刻没有任何事情发生,那些统计数据将是0)。对于指标的长期视图,您还需要其他内容(有关收集指标的详细信息,请参阅https://linkerd.io/getting-started/admin/index.html#metrics)。
如果您使用的是Kubernetes或DC / OS,还可以查看linkerd-viz。希望有所帮助!