Skip to content

Commit

Permalink
feature-cluster-metrics: fix kubelet.extraDiscoveryRules typo (#1269)
Browse files Browse the repository at this point in the history
Signed-off-by: Robbie Lankford <[email protected]>
  • Loading branch information
rlankfo authored Feb 21, 2025
1 parent e606494 commit 92f830e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ discovery.relabel "kubelet" {
target_label = "source"
}
{{- end }}
{{- if .Values.kubelet.extraRelabelingRules }}
{{ .Values.kubelet.extraRelabelingRules | indent 2 }}
{{- if .Values.kubelet.extraDiscoveryRules }}
{{ .Values.kubelet.extraDiscoveryRules | indent 2 }}
{{- end }}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ should render the default configuration:
// Kubelet
discovery.relabel "kubelet" {
targets = discovery.kubernetes.nodes.targets
rule {
target_label = "color"
replacement = "red"
}
}

prometheus.scrape "kubelet" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ tests:
- it: should render the default configuration
set:
deployAsConfigMap: true
kubelet:
extraDiscoveryRules: |-
rule {
target_label = "color"
replacement = "red"
}
kube-state-metrics:
extraDiscoveryRules: |-
rule {
Expand Down

0 comments on commit 92f830e

Please sign in to comment.