First stab at new prometheus charts
This commit is contained in:
parent
05993ab6b0
commit
509f8d59fb
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user