prometheusOperator: kubeletService: enabled: true # requires manual creation of service #prom-kublet-service # Used file to testing new options and configurations # Should be the laste file to be loaded kubelet: enabled: true namespace: kube-system serviceMonitor: interval: 30s #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 additionalLabels: app.kubernetes.io/name: prometheus-kubelet # !important: selector used by agent 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