-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube-prometheus-stack.values.patch.yaml
39 lines (37 loc) · 1.22 KB
/
kube-prometheus-stack.values.patch.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
kube-state-metrics:
prometheus:
# deploy a ServiceMonitor so the metrics are collected by Prometheus
monitor:
enabled: true
rbac:
create: true
extraRules:
- apiGroups: ["hepapi.com"]
resources: ["hpaprescalers", "hpaprescalerprofiles", "hpaprescalers/status", "hpaprescalerprofiles/status"]
verbs: ["list", "watch"]
customResourceState:
enabled: true
config:
kind: CustomResourceStateMetrics
spec:
resources:
- groupVersionKind:
group: hepapi.com
version: v1
kind: HpaPrescaler
labelsFromPath:
name: ["metadata", "name"]
namespace: ["metadata", "namespace"]
metrics:
- name: hpaprescaler_info
help: "Exposes details about HpaPrescaler objects"
each:
type: Info
info:
labelsFromPath:
argoAppName: ["spec", "argocdAppName"]
targetProfileName: ["spec", "targetProfileName"]
targetTime: ["spec", "timeStart"]
state: ["status", "state"]
message: ["status", "message"]
processedAt: ["status", "processedAt"]