Skip to content

Commit

Permalink
Merge pull request #53 from frezes/feat/kube-prometheus-stack
Browse files Browse the repository at this point in the history
[kube-prometheus-stack] update custom-resource-state-config
  • Loading branch information
benjaminhuo authored Mar 6, 2024
2 parents fe8eb61 + 9b03651 commit 25cc14b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 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.17
version: 52.1.18
appVersion: v0.68.0
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
38 changes: 22 additions & 16 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2008,17 +2008,31 @@ kube-state-metrics:
resources:
- groupVersionKind:
group: iam.kubesphere.io
kind: "User"
kind: "ClusterRoleBinding"
version: "v1beta1"
metricNamePrefix: ""
labelsFromPath:
user: [metadata, name]
metrics:
- name: "kubesphere_user_info"
help: "information about iam.kubesphere.io/user."
- name: "kubesphere_clusterrolebinding_info"
help: "information about iam.kubesphere.io/clusterrolebinding."
each:
type: Info
info: {}
info:
labelsFromPath:
clusterrolebinding: [metadata, name]
- groupVersionKind:
group: iam.kubesphere.io
kind: "ClusterRole"
version: "v1beta1"
metricNamePrefix: ""
metrics:
- name: "kubesphere_clusterrole_info"
help: "information about iam.kubesphere.io/clusterrole."
each:
type: Info
info:
labelsFromPath:
clusterrole: [metadata, name]
rbac:
create: true
Expand All @@ -2027,10 +2041,7 @@ kube-state-metrics:
resources: ["customresourcedefinitions"]
verbs: ["list", "watch"]
- apiGroups: ["iam.kubesphere.io"]
resources: ["users"]
verbs: ["list", "watch"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterrolebindings", "clusterroles", "rolebindings", "roles"]
resources: ["clusterroles", "clusterrolebindings"]
verbs: ["list", "watch"]


Expand All @@ -2054,13 +2065,10 @@ kube-state-metrics:
- kube_poddisruptionbudget_status_.+
- kube_replicationcontroller_.+
- kube_(hpa|replicaset|replicationcontroller)_.+_generation
- kube_clusterrole_info
- kube_clusterrolebinding_info
metricLabelsAllowlist:
- namespaces=[kubesphere.io/workspace]
- storageclasses=[storage.kubesphere.io/storagetype]
metricAnnotationsAllowList:
- clusterroles=[kubesphere.io/creator]
metricAnnotationsAllowList: []
collectors:
- certificatesigningrequests
- configmaps
Expand Down Expand Up @@ -2090,8 +2098,6 @@ kube-state-metrics:
- storageclasses
- validatingwebhookconfigurations
- volumeattachments
- clusterroles
- clusterrolebindings


prometheus:
Expand Down

0 comments on commit 25cc14b

Please sign in to comment.