Unable to display Prometheus Dashboard
I have an app deployed on AKS cluster. Then I setup ingress-nginx controller.
After that I setup ingress manifest to expose this app using below code:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-ngnix-sampleapp-ic
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ngnix-cluster-ip
port:
number: 80
This works fine and I am able to access the app from my browser locally.
Then I installed Prometheus using below command:
helm install prometheus prometheus-community/prometheus
This also works fine and I can see prometheus installed on the cluster.
After that I expose Prometheus using ingress manifest as below:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-nginx-prometheus-ic
namespace: prometheus
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- http:
paths:
- path: /graph
pathType: Prefix
backend:
service:
name: prometheus-kube-prometheus-prometheus
port:
number: 9090
After that when I try to access the Prometheus from my browser, I only see a blank page. I have enabled javascript on the browser but nothing changes. I see page as below:
The title of page shows that its routing fine, but why is the page blank?
Any help is greatly appreciated.