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

Question about Istio Standard Metrics missing in application pod #38539

Closed
Jackson-Stard opened this issue Apr 23, 2022 · 9 comments
Closed

Question about Istio Standard Metrics missing in application pod #38539

Jackson-Stard opened this issue Apr 23, 2022 · 9 comments

Comments

@Jackson-Stard
Copy link

Jackson-Stard commented Apr 23, 2022

Bug Description

I am new hand for Istio, and I found that I cannot get Istio Standard Metrics in my own application pod, but it works well if I deploy bookinfo in my cluster.
I spent more time to figure it out, but failed, I think it should be something wrong with my application pod, maybe missing some configuration, could anyone happen to know how to fix it?

my test application is webtest, it is quite simple just one api call, istio injection is enabled.
image

I can see the istio_requests_total metric from istio ingress gateway through localhost:15000/stats/prometheus, same as bookinfo, but I cannot see it in my webtest pod.

The log for istio-proxy in my webtest pod is like below: the request id is null, and it is quite different with bookinfo
image

Thanks for you help!

Version

$ istioctl version
client version: 1.13.1
control plane version: 1.13.1
data plane version: 1.13.1 (11 proxies)

$ kubectl version --short
Client Version: v1.23.4
Server Version: v1.21.10
WARNING: version difference between client (1.23) and server (1.21) exceeds the supported minor version skew of +/-1

$ helm version --short
v3.8.0+gd141386

Additional Information

No response

@zirain
Copy link
Member

zirain commented Apr 23, 2022

can you share the config_dump of the webtest pod?

@Jackson-Stard
Copy link
Author

this

can you share the config_dump of the webtest pod?

the file is quite big, what do you want to see

image

@Jackson-Stard
Copy link
Author

can you share the config_dump of the webtest pod?
config_dump.txt
I attached the config_dump file, thanks.

@Jackson-Stard
Copy link
Author

can you share the config_dump of the webtest pod?

I checked the config_dump, I did not find inbound router for webtest.promtest.svc.cluster.local:80/, but I find inbound route for productpage.bookinfo.svc.cluster.local:9080/.

I am wondering why there is no inbound route for webtest.

@zirain
Copy link
Member

zirain commented Apr 24, 2022

do you follow this?

@Jackson-Stard
Copy link
Author

do you follow this?

My service definition like this, oh, I should use http, right?

apiVersion: v1
kind: Service
metadata:
namespace: promtest
name: webtest
spec:
selector:
app: webtest
ports:
- protocol: TCP
port: 9876
name: tcp-webtest
targetPort: 80

@Jackson-Stard
Copy link
Author

it looks it works if I change it to http

@zirain
Copy link
Member

zirain commented Apr 24, 2022

@Jackson-Stard can we close this?

@Jackson-Stard
Copy link
Author

@Jackson-Stard can we close this?

sure, thanks for your help

@zirain zirain closed this as completed Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants