Replies: 5 comments
Sorry where is Disabling metrics is a pretty big change to Dozzle. It would require complex changes to multiple components that I won't have time to do. You are the first person to ask for this feature though. If a lot of k8s users need this feature then perhaps I or someone can work on it. |
You’re absolutely right — I made a mistake assuming DOZZLE_METRICS=false already exists. My intention was to suggest adding a new option (e.g., DOZZLE_DISABLE_METRICS=true) to make metrics integration optional. This would help users in clusters where Metrics Server is not installed (e.g., minimal setups), avoiding: Forced dependencies on metrics.k8s.io. |
|
Great. Currently, the documentation states that metrics is required. However, if more people use Kubernetes, I will revisit this issue to broaden the support. |
|
I haven't seen many other people request this. I am going to change the title and move to discussion. |
|
In my case I'm trying to run on a production EKS cluster (AWS) where I don't have permissions to the metrics server (even though it does exist), and get a panic. In my case even downgrading this to an error log instead of a panic will be good enough. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature you would like to see
Add an option to fully disable metrics-related functionality in Dozzle for Kubernetes clusters where Metrics Server is not installed or required.
Description:
Currently, Dozzle tries to access Kubernetes metrics by default even when Metrics Server is not present. This causes unnecessary errors and forces users to grant extra permissions.
Describe how you would like to see this feature implemented
The current behavior forces users to:
Install Metrics Server even if metrics are not needed.
Add RBAC permissions for metrics.k8s.io or nodes.
Deal with startup errors related to missing metrics.
Proposed Solution:
Add a new environment variable like DOZZLE_DISABLE_METRICS=true to completely skip metrics-related code, including:
No attempts to connect to metrics.k8s.io.
No background checks for metrics.
No need for metrics-related RBAC rules.
Example Configuration:
env:
value: "k8s"
value: "false"
Describe any alternatives you've considered
No response
All reactions