question

BALAKRISHNAA-6881 avatar image
0 Votes"
BALAKRISHNAA-6881 asked prmanhas-MSFT answered

exposing the pods

we are planning deploy the Prometheus in the AKS and grafana tool in VM deployed in same Vnet.

Its possible expose the Prometheus pod as node port instead load balancer and so grafana vm can able to access the Prometheus pod through nodeport with out public IP

azure-kubernetes-service
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.

1 Answer

prmanhas-MSFT avatar image
0 Votes"
prmanhas-MSFT answered

@BALAKRISHNAA-6881 Apologies for the delay in response and all the inconvenience caused because of the issue.

Yes you can deploy the Prometheus in the AKS as per your requirement.. Here is an example of the prometheus service of type Node Port under the "Exposing Prometheus as a Service [NodePort & LoadBalancer]" section at https://devopscube.com/setup-prometheus-monitoring-on-kubernetes/. The service discovery url (datasources.url) of grafana config should point to the correct endpoint (<nodeIP>:<nodePort>)

You can also create the Prometheus Service as an internal LoadBalancer type service as mentioned here which will also not involve any Public IP and does not depend on ports of the node VM.

Hope it helps!!!

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.



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.