question

SandeepYarashi-3149 avatar image
0 Votes"
SandeepYarashi-3149 asked SandeepYarashi-3149 answered

Cannot access prometheus and grafana from browser

I have aks,appgw , sample webapp ,public ip deployed in azure. In aks I installed prometheus and grafana using helm.
I can curl -L http:localhost.com:9090 (prometheus port -9090) in aks after port forwarding but can't access localhost:9090 in browser as my laptop and aks is in different network. I want to access prometheus and grafana with public IP of app gateway.
For eg:public ip is 10.0.2.2 I want to access prometheus by 10.0.2.2/prometheus and
access grafana by 10.0.2.2/ grafana. How to achieve this.

azure-kubernetes-serviceazure-application-gateway
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

srbose-msft avatar image
0 Votes"
srbose-msft answered srbose-msft commented

@SandeepYarashi-3149 , Thank you for your question. I understand that you have asked the same question here. An answer has been posted on the aforementioned thread. For convenient tracking of the question and so that the community can find answers to related questions at one place, we shall encourage you to continue with the conversation at https://docs.microsoft.com/en-us/answers/questions/514027/cannot-access-prometheus-and-grafana-from-browser-1.html


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@srbose-msft Thanks for your response. I did change nginx with appgw keyword to have agic working and did appropriate changes.I am new to using Azure can you explain step wise how to get this working. This is not working for me yet.

0 Votes 0 ·

@SandeepYarashi-3149 , thank you for your response. I have posted a detailed response at https://docs.microsoft.com/en-us/answers/questions/514027/cannot-access-prometheus-and-grafana-from-browser-1.html

Please check if NSG, Firewall etc. are appropriately set to allow inbound traffic from the public internet to the Application gateway and from the Application Gateway to the AKS node pool.

0 Votes 0 ·
SandeepYarashi-3149 avatar image
0 Votes"
SandeepYarashi-3149 answered

@srbose-msft no, it's not working is there any alternative

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.