# The monitoring component, for a cluster that runs the # prometheus-operator: a PodMonitor that scrapes the operator, and the # alert rules. It changes nothing in the base, so a cluster without the # prometheus-operator leaves it out. # # resources: # - # components: # - /monitoring # # Both objects name the namespace simmer, because a Component's # resources come after the base's namespace transformer. An overlay # with its own namespace field moves them with the rest. A Prometheus # that selects rules or monitors by label needs that label added in # your overlay. apiVersion: kustomize.config.k8s.io/v1alpha1 kind: Component resources: - podmonitor.yaml - prometheusrule.yaml