Remove redundant cadvisor relabel rules in alloyModule #1248
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for maintaining this awesome chart! It has saved us a lot of trouble ❤️
We currently have trouble with our openshift clusters, where cadvisor does not populate the
image
label oncontainer_network_.*
metrics for some reason. We saw the same problem with v1 of the chart, but were able to work around it withdropEmptyImageLabels: false
and anextraMetricProcessingRules
The options in the k8s-monitoring chart v2:
cadvisor.metricsTuning.dropEmptyContainerLabels
cadvisor.metricsTuning.dropEmptyImageLabels
cadvisor.metricsTuning.normalizeUnnecessaryLabels
cadvisor.metricsTuning.keepPhysicalFilesystemDevices
cadvisor.metricsTuning.keepPhysicalNetworkDevices
currently do not seem to have an impact on how alloy behaves in reality, because these rules are always included through the
-alloy-module-kubernetes
configmap.Looking at our output k8s-monitoring-alloy-metrics configmap, we have this:
The k8s-monitoring-alloy-module-kubernetes includes the drop rules, but we cannot disable these
charts/k8s-monitoring/charts/feature-cluster-metrics/templates/_cadvisor.alloy.tpl
andcharts/k8s-monitoring/alloyModules/modules/kubernetes/core/metrics.alloy
seem to have the same set of rules, butcharts/k8s-monitoring/charts/feature-cluster-metrics/templates/_cadvisor.alloy.tpl
is configurable