Unable to display Prometheus Dashboard

sumit bharti 0 Reputation points
2024-06-07T03:09:09.82+00:00

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:

Image

The title of page shows that its routing fine, but why is the page blank?

Any help is greatly appreciated.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,037 questions
{count} votes