Prometheus dashboard exposed over alb-ingress-controller is not loading fully

38 views
Skip to first unread message

vikram yerneni

unread,
Apr 21, 2020, 6:47:51 PM4/21/20
to Prometheus Users

Fellas, I am using Helm/Stable/Prometheus Server for my Metrics datasource and the Prometheus Server Dashboard is exposed using alb-ingress controller in AWS. Somehow the prometheus webpage is not loading fully (few parts of the webpage are not getting loaded and throwing 404 errors). Here is the Ingress configuration

    ingress: 
    ## If true, Prometheus server Ingress will be created

    ##

    enabled: true


    ## Prometheus server Ingress annotations

    ##

    annotations:

       kubernetes.io/ingress.class: 'alb'

       #kubernetes.io/tls-acme: 'true'

       alb.ingress.kubernetes.io/scheme: internet-facing

       alb.ingress.kubernetes.io/load-balancer-attributes: 'routing.http2.enabled=true,idle_timeout.timeout_seconds=60'

       alb.ingress.kubernetes.io/certificate-arn: certname

       alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'

       alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'

    service:

      annotations:

        alb.ingress.kubernetes.io/target-type: ip

    labels: {}

    path: /*

    hosts:

       - prometheus.company.com


    ## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.

    extraPaths:

     - path: /*

       backend:

         serviceName: ssl-redirect

         servicePort: use-annotation



When I access prometheus.company.com, its getting properly redirected to prometheus.company.com/graph (assuming the redirect is working fine). However, some parts (*.js & *.css files) of the webpage is throwing 404 errors Anyone been through this issue before and if so, how y'all got it resolved?

This configuration is set in the values.yaml file: https://github.com/helm/charts/blob/master/stable/prometheus/values.yaml

Cheers!

Murali Krishna Kanagala

unread,
Apr 21, 2020, 7:29:33 PM4/21/20
to vikram yerneni, Prometheus Users
Try setting the --web.external-url in the container arguments.


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/da00c725-157c-49cb-b544-24aa2c9aa7d1%40googlegroups.com.

vikram yerneni

unread,
Apr 21, 2020, 8:47:22 PM4/21/20
to Prometheus Users
Hi Murali, the container gets created by Helm charts. Let me see if I can modify the values here.

However, the page is loading (I just want to reiterate here). Its just the additional *.css & *.js files are not loading...

Thanks
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.

Murali Krishna Kanagala

unread,
Apr 21, 2020, 10:10:30 PM4/21/20
to vikram yerneni, Prometheus Users

To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/0538e51b-9093-4347-adc0-c86f333bddcf%40googlegroups.com.

vikram yerneni

unread,
Apr 21, 2020, 11:10:13 PM4/21/20
to Prometheus Users
I tried to add it over here Murali: https://github.com/helm/charts/blob/master/stable/prometheus/values.yaml#L555
It did nothing... Still same...

Thanks again for helping me dude... 

vikram yerneni

unread,
Apr 21, 2020, 11:29:08 PM4/21/20
to Prometheus Users
Actually, I fixed the issue Murali.
I added the /* after the url defined under hosts section and it worked like charm...


Thanks

Murali Krishna Kanagala

unread,
Apr 22, 2020, 7:21:10 AM4/22/20
to vikram yerneni, Prometheus Users
Nice! Here are some more details about the web external url flag

To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5735c723-78d3-4b68-a63f-0c4916ba48b7%40googlegroups.com.

vikram yerneni

unread,
Apr 22, 2020, 9:04:08 AM4/22/20
to Prometheus Users
Reply all
Reply to author
Forward
0 new messages