Skip to content

Commit

Permalink
Merge pull request #37 from frezes/feat/customizingRules
Browse files Browse the repository at this point in the history
[kube-prometheus-stack] remove heritage-service and fix rules
  • Loading branch information
benjaminhuo authored Dec 27, 2023
2 parents 472d40f + b9e48f3 commit d96b9c3
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 81 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 52.1.5
version: 52.1.6
appVersion: v0.68.0
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
5 changes: 5 additions & 0 deletions charts/kube-prometheus-stack/extension_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ global:


prometheus:
# agentMode: true

prometheusSpec:
image:
registry: quay.io
Expand All @@ -32,6 +34,9 @@ prometheus:
resources:
requests:
storage: 20Gi

# remoteWrite:
# - url: http://prometheus-k8s.kubesphere-monitoring-system.svc:9090/api/v1/receive

prometheusOperator:
image:
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ spec:
kube_pod_owner{owner_kind!~"ReplicaSet|DaemonSet|StatefulSet|Job"},
"workload",
"$1",
"owner_kind"
"owner_name"
),
"workload_type",
"$1",
"owner_name"
"owner_kind"
)
or
kube_pod_owner{owner_kind=~"ReplicaSet|DaemonSet|StatefulSet|Job"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
kube_pod_owner{owner_kind!~"ReplicaSet|DaemonSet|StatefulSet|Job"},
"workload",
"$1",
"owner_kind"
"owner_name"
),
"workload_type",
"$1",
"owner_name"
"owner_kind"
)
or
kube_pod_owner{owner_kind=~"ReplicaSet|DaemonSet|StatefulSet|Job"}
Expand Down
4 changes: 2 additions & 2 deletions ks-prometheus/manifests/whizard-telemetry-prometheusRule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ spec:
kube_pod_owner{owner_kind!~"ReplicaSet|DaemonSet|StatefulSet|Job"},
"workload",
"$1",
"owner_kind"
"owner_name"
),
"workload_type",
"$1",
"owner_name"
"owner_kind"
)
or
kube_pod_owner{owner_kind=~"ReplicaSet|DaemonSet|StatefulSet|Job"}
Expand Down

0 comments on commit d96b9c3

Please sign in to comment.