defaultRules: create: false alertmanager: enabled: false grafana: enabled: false prometheus: enabled: false kubeStateMetrics: enabled: true nodeExporter: enabled: true prometheus-node-exporter: prometheus: monitor: enabled: true relabelings: # https://github.com/dotdc/grafana-dashboards-kubernetes - action: replace sourceLabels: [__meta_kubernetes_pod_node_name] targetLabel: nodename - targetLabel: cluster replacement: casa coreDns: enabled: true serviceMonitor: relabelings: - targetLabel: cluster replacement: casa kubeApiServer: enabled: true serviceMonitor: relabelings: - targetLabel: cluster replacement: casa kubeControllerManager: enabled: false kubeEtcd: enabled: false kubeProxy: enabled: false kubeScheduler: enabled: false kube-state-metrics: podLabels: role: worker-node nodeSelector: role: worker-node prometheus: monitor: relabelings: - targetLabel: cluster replacement: casa prometheusOperator: kubeletService: enabled: true enabled: true createCustomResource: true tls: enabled: false admissionWebhooks: enabled: false cleanupCustomResource: false serviceMonitor: selfMonitor: false kubelet: enabled: true namespace: kube-system serviceMonitor: interval: 60s #WARN: Error on ingesting out-of-order samples. https://github.com/prometheus-community/helm-charts/issues/5483 enabled: true ## Enable scraping /metrics from kubelet's service kubelet: true probesMetricRelabelings: - targetLabel: cluster replacement: casa - sourceLabels: [__name__, image] separator: ; regex: container_([a-z_]+); replacement: $1 action: drop - sourceLabels: [__name__] separator: ; regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s) replacement: $1 action: drop # # RelabelConfigs to apply to samples before scraping # # ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig # # # # metrics_path is required to match upstream rules and charts cAdvisorRelabelings: - targetLabel: cluster replacement: casa - action: replace sourceLabels: [__metrics_path__] targetLabel: metrics_path - sourceLabels: [__meta_kubernetes_pod_node_name] separator: ; regex: ^(.*)$ targetLabel: nodename replacement: $1 action: replace # # RelabelConfigs to apply to samples before scraping # # ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#relabelconfig # # probesRelabelings: - targetLabel: cluster replacement: casa - action: replace sourceLabels: [__metrics_path__] targetLabel: metrics_path - sourceLabels: [__meta_kubernetes_pod_node_name] separator: ; regex: ^(.*)$ targetLabel: nodename replacement: $1 action: replace resourceRelabelings: - targetLabel: cluster replacement: casa - action: replace sourceLabels: [__metrics_path__] targetLabel: metrics_path