cncf-tags / green-reviews-tooling

Project Repository for the WG Green Reviews which is part of the CNCF TAG Environmental Sustainability
https://github.com/cncf/tag-env-sustainability/tree/main/working-groups/green-reviews
Apache License 2.0
28 stars 14 forks source link

[Action] Make Grafana dashboards publicly accessible from cluster #31

Open rossf7 opened 10 months ago

rossf7 commented 10 months ago

This issue is to make our Grafana dashboards public accessible from our Equinix cluster.

We already have the Kepler dashboard deployed by Flux https://github.com/cncf-tags/green-reviews-tooling/issues/16

For https://github.com/cncf-tags/green-reviews-tooling/issues/20 we want to be able to visualize the metrics we are interested in collecting.

Tasks

Networking

Open Questions

dipankardas011 commented 10 months ago

I Can help with this issue

rossf7 commented 10 months ago

@dipankardas011 thanks for taking #30

@greenscale-nandesh thanks for taking this one. As of #36 the K3s install of Traefik is now deployed to the cluster.

As a starting point it would be worth investigating if we can enable the Grafana ingress via the kube-prometheus-stack helm chart

https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack

We can then look into getting a DNS entry and cert. We should also investigate adding an elastic IP to the worker node. https://deploy.equinix.com/developers/docs/metal/networking/elastic-ips/

Nandesh, let me know if anything is unclear or you want to sync on this.

rossf7 commented 9 months ago

We would like to have a DNS record for the cluster so we can have public grafana dashboards.

e.g. tag-env-green-reviews.cncf.io

@leonardpahlke Could you help with this?

leonardpahlke commented 9 months ago

Yes. I can open a ticket once we have an elastic IP and a dashboard to display smth. I would ask for green-reviews.tag-env-sustainability.cncf.io

rossf7 commented 8 months ago

@nikimanoledaki @leonardpahlke @AntonioDiTuri Grafana is now available via the elastic ip '147.75.40.83' should we go with green-reviews.tag-env-sustainability.cncf.io as the domain?

You can access it at http://147.75.40.83/

dipankardas011 commented 8 months ago

Given: docs/home page tag-env-sustainability.cncf.io

we have this subdomain *.green-reviews.tag-env-sustainability.cncf.io

dipankardas011 commented 8 months ago

for what all things we need to decide the domain for?

leonardpahlke commented 8 months ago

We can get the domain registered. If we plan to have other pages too we could also opt for dash-green-reviews.tag-env-sustainability.cncf.io or dash.green-reviews.tag-env-sustainability.cncf.io & later docs.greeen-reviews.tag-env-sustainability.cncf.io.

AntonioDiTuri commented 8 months ago

+1 For

rossf7 commented 8 months ago

I think the dashboard is the primary site so what about using green-reviews.tag-env-sustainability.cncf.io for that?

+1 for docs.green-reviews.tag-env-sustainability.cncf.io

dipankardas011 commented 8 months ago

I think the dashboard is the primary site so what about using green-reviews.tag-env-sustainability.cncf.io for that?

what about grafana.green-reviews.tag-env-sustainability.cncf.io for the dasbooard 😄

dipankardas011 commented 8 months ago

for the docs it might be good if we keep it as the root of the subdomain and all other in the subdomain like *.green-reviews...

rossf7 commented 7 months ago

@leonardpahlke like we agreed in WG meeting domain will be dash.green-reviews.tag-env-sustainability.cncf.io and the elastic IP is 147.75.40.83

leonardpahlke commented 7 months ago

👍 - 147.75.40.83 leads to a Grafana page where you need to provide credentials. Do we plan to make this page public?

leonardpahlke commented 7 months ago

will wait for https://github.com/cncf-tags/green-reviews-tooling/issues/65#issuecomment-2049163754 - so we register both CNAME’s at once

dipankardas011 commented 7 months ago

had one question what are we going to use nginx lb or nginx gateway api?

rossf7 commented 7 months ago

147.75.40.83 leads to a Grafana page where you need to provide credentials. Do we plan to make this page public?

@leonardpahlke We can share the SCI dashboard publicly but it will need code changes because we use template variables which is not supported https://github.com/grafana/grafana/issues/67346#issuecomment-1864389382

had one question what are we going to use nginx lb or nginx gateway api?

@dipankardas011 Grafana already has an ingress managed via the helm chart. We use the traefik ingress controller that ships with k3s.

We will likely need to add cert-manager to the cluster managed by Flux and configure LetsEncrypt to issue a cert. Once the domain is set up we can add that.

leonardpahlke commented 7 months ago

@leonardpahlke like we agreed in WG meeting domain will be dash.green-reviews.tag-env-sustainability.cncf.io and the elastic IP is 147.75.40.83

opened a servicedesk ticket