diff --git a/charts/kubezero-metrics/Chart.yaml b/charts/kubezero-metrics/Chart.yaml index d2c2a90a..4cee1e89 100644 --- a/charts/kubezero-metrics/Chart.yaml +++ b/charts/kubezero-metrics/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero-metrics description: KubeZero Umbrella Chart for prometheus-operator type: application -version: 0.1.4 +version: 0.2.0 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png keywords: @@ -15,10 +15,10 @@ dependencies: - name: kubezero-lib version: ">= 0.1.3" repository: https://zero-down-time.github.io/kubezero/ - - name: prometheus-operator - version: 9.3.1 - repository: https://kubernetes-charts.storage.googleapis.com/ + - name: kube-prometheus-stack + version: 10.0.1 + repository: https://prometheus-community.github.io/helm-charts - name: prometheus-adapter - version: 2.5.0 - repository: https://kubernetes-charts.storage.googleapis.com/ + version: 2.7.0 + repository: https://prometheus-community.github.io/helm-charts kubeVersion: ">= 1.16.0" diff --git a/charts/kubezero-metrics/values.yaml b/charts/kubezero-metrics/values.yaml index 13c93f20..0586f426 100644 --- a/charts/kubezero-metrics/values.yaml +++ b/charts/kubezero-metrics/values.yaml @@ -11,7 +11,7 @@ prometheus: url: "" gateway: istio-system/ingressgateway -prometheus-operator: +kube-prometheus-stack: defaultRules: create: true @@ -60,9 +60,9 @@ prometheus-operator: prometheusOperator: enabled: true #image: - # tag: v0.41.0 + # tag: v0.42.1 #prometheusConfigReloaderImage: - # tag: v0.41.0 + # tag: v0.42.1 # Run on controller nodes tolerations: @@ -160,11 +160,11 @@ prometheus-adapter: default: false resource: cpu: - containerQuery: sum(irate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}[5m])) by (<<.GroupBy>>) - nodeQuery: sum(1 - irate(node_cpu_seconds_total{mode="idle"}[5m]) * on(namespace, pod) group_left(node) node_namespace_pod:kube_pod_info:{<<.LabelMatchers>>}) by (<<.GroupBy>>) + containerQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>}[3m])) by (<<.GroupBy>>) + nodeQuery: sum(rate(container_cpu_usage_seconds_total{<<.LabelMatchers>>, id='/'}[3m])) by (<<.GroupBy>>) resources: overrides: - node: + instance: resource: node namespace: resource: namespace @@ -172,15 +172,15 @@ prometheus-adapter: resource: pod containerLabel: container memory: - containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}) by (<<.GroupBy>>) - nodeQuery: sum(node_memory_MemTotal_bytes{job="node-exporter",<<.LabelMatchers>>} - node_memory_MemAvailable_bytes{job="node-exporter",<<.LabelMatchers>>}) by (<<.GroupBy>>) + containerQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>}) by (<<.GroupBy>>) + nodeQuery: sum(container_memory_working_set_bytes{<<.LabelMatchers>>,id='/'}) by (<<.GroupBy>>) resources: overrides: - node: + instance: resource: node namespace: resource: namespace pod: resource: pod containerLabel: container - window: 5m + window: 3m