Skip to content

Commit 3064c8e

Browse files
committed
added retina and hubble scrape job for prometheus
1 parent d50fc0e commit 3064c8e

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

deploy/hubble/prometheus/values.yaml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
windowsMonitoring:
2+
enabled: true
3+
4+
prometheusOperator:
5+
affinity:
6+
nodeAffinity:
7+
requiredDuringSchedulingIgnoredDuringExecution:
8+
nodeSelectorTerms:
9+
- matchExpressions:
10+
- key: kubernetes.io/os
11+
operator: In
12+
values:
13+
- linux
14+
15+
admissionWebhooks:
16+
deployment:
17+
affinity:
18+
nodeAffinity:
19+
requiredDuringSchedulingIgnoredDuringExecution:
20+
nodeSelectorTerms:
21+
- matchExpressions:
22+
- key: kubernetes.io/os
23+
operator: In
24+
values:
25+
- linux
26+
patch:
27+
affinity:
28+
nodeAffinity:
29+
requiredDuringSchedulingIgnoredDuringExecution:
30+
nodeSelectorTerms:
31+
- matchExpressions:
32+
- key: kubernetes.io/os
33+
operator: In
34+
values:
35+
- linux
36+
37+
prometheus:
38+
prometheusSpec:
39+
affinity:
40+
nodeAffinity:
41+
requiredDuringSchedulingIgnoredDuringExecution:
42+
nodeSelectorTerms:
43+
- matchExpressions:
44+
- key: kubernetes.io/os
45+
operator: In
46+
values:
47+
- linux
48+
additionalScrapeConfigs: |
49+
- job_name: "retina-pods"
50+
kubernetes_sd_configs:
51+
- role: pod
52+
relabel_configs:
53+
- source_labels: [__meta_kubernetes_pod_container_name]
54+
action: keep
55+
regex: retina
56+
- source_labels:
57+
[__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
58+
separator: ":"
59+
regex: ([^:]+)(?::\d+)?
60+
target_label: __address__
61+
replacement: ${1}:${2}
62+
action: replace
63+
- source_labels: [__meta_kubernetes_pod_node_name]
64+
action: replace
65+
target_label: instance
66+
metric_relabel_configs:
67+
- source_labels: [__name__]
68+
action: keep
69+
regex: (.*)
70+
- job_name: networkobservability-hubble
71+
kubernetes_sd_configs:
72+
- role: pod
73+
relabel_configs:
74+
- target_label: cluster
75+
replacement: myAKSCluster
76+
action: replace
77+
- source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_pod_label_k8s_app]
78+
regex: kube-system;(retina|cilium)
79+
action: keep
80+
- source_labels: [__address__]
81+
action: replace
82+
regex: ([^:]+)(?::\d+)?
83+
replacement: $1:9965
84+
target_label: __address__
85+
- source_labels: [__meta_kubernetes_pod_node_name]
86+
target_label: instance
87+
action: replace
88+
metric_relabel_configs:
89+
- source_labels: [__name__]
90+
regex: '|hubble_dns_queries_total|hubble_dns_responses_total|hubble_drop_total|hubble_tcp_flags_total' # if desired, add |hubble_flows_processed_total
91+
action: keep

0 commit comments

Comments
 (0)