-
-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Describe the bug
When running Franz from my local system against Prometheus deployed in my company's K8S cluster using, apparently, self signed certificate, I get the following error for a large number of similar queries on launching the Franz portal on http://localhost:3000
Error: FetchError: request to https://prometheus.myCompany.com/api/v1/query?query=(sum(kafka_cluster_partition_insyncreplicascount%7Btopic=~%22__consumer_offsets%22%7D)by(topic)) failed, reason: self signed certificate in certificate chain
To Reproduce
Steps to reproduce the behavior:
- Install Kafka in K8S cluster and expose it via Nodeport for use.
- Validate that the Kafka brokers can be reached from my dev desktop using a test application.
- Install Prometheus in K8S cluster and expose it via both Nodeport and Ingress.
- Validate that both URLs http:Nodeport, and https://ingress and successfully display the Prometheus portal from my dev desktop.
- Set .env to use either of the two URLs to the Prometheus instance, save the changes and run "npm start".
- When console indicates that the console is available on port 3000, open the portal.
Expected behavior
The portal to draw properly and be able to retrieve data with no errors in the console.
Actual behavior*
All attempts to query the Prometheus service fail with the self signed cert issue.
Thing's I've attempted to resolve the issue:
- Import the cert in my system cert store as a Trusted Root Cert Authority
- Set strict SSL to false
- Set NPM config to point to the cert directly
Source of the attempts:
https://stackoverflow.com/questions/13913941/how-to-fix-ssl-certificate-error-when-running-npm-on-windows/30341389#30341389
None of these things have worked, so I need help/guidance.
Desktop (please complete the following information):
- OS: Windows 11
- Browser Edge and Chrome
- Version Latest on both.
Additional context
What I'm looking for is a way to make this work so I can evaluate it for use within my team to monitor and manage our Kafka clusters, so any help would be greatly appreciated.