Skip to content

Commit

Permalink
Update examples and test outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall committed Jan 8, 2025
1 parent 37ec635 commit 56903ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1709,12 +1709,12 @@ data:
optional = true
}
// kube state metrics service discovery for all of the pods
// kube state metrics service discovery for all of the endpoints
discovery.kubernetes "ksm" {
role = "service"
role = "endpoints"
selectors {
role = "service"
role = "endpoints"
field = string.join(coalesce(argument.field_selectors.value, []), ",")
label = string.join(coalesce(argument.label_selectors.value, ["app.kubernetes.io/name=kube-state-metrics"]), ",")
}
Expand All @@ -1730,7 +1730,7 @@ data:
// only keep targets with a matching port name
rule {
source_labels = ["__meta_kubernetes_service_port_name"]
source_labels = ["__meta_kubernetes_endpoint_port_name"]
regex = coalesce(argument.port_name.value, "http")
action = "keep"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ metadata:
app.kubernetes.io/instance: k8smon
app.kubernetes.io/version: "0.29.2"
release: k8smon
annotations:
prometheus.io/scrape: "false"
data:
config.yml: |
collectors:
Expand Down Expand Up @@ -2548,7 +2550,7 @@ metadata:
app.kubernetes.io/version: "1.8.2"
release: k8smon
annotations:
prometheus.io/scrape: "true"
prometheus.io/scrape: "false"
spec:
type: ClusterIP
ports:
Expand Down Expand Up @@ -2577,6 +2579,7 @@ metadata:
release: k8smon
annotations:
prometheus.io/scrape: "true"
prometheus.io/scrape: "false"
spec:
type: ClusterIP
ports:
Expand Down

0 comments on commit 56903ca

Please sign in to comment.