Skip to content

Commit d802a4d

Browse files
committed
allow scraping from alloy
1 parent df3e3e1 commit d802a4d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

charts/naiserator/templates/netpol.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ spec:
6060
apiVersion: networking.k8s.io/v1
6161
kind: NetworkPolicy
6262
metadata:
63-
name: {{ .Release.Name }}-prometheus
63+
name: {{ .Release.Name }}-metrics
6464
spec:
6565
ingress:
6666
- from:
@@ -70,6 +70,12 @@ spec:
7070
podSelector:
7171
matchLabels:
7272
app.kubernetes.io/name: prometheus
73+
- namespaceSelector:
74+
matchLabels:
75+
kubernetes.io/metadata.name: nais-system
76+
podSelector:
77+
matchLabels:
78+
app.kubernetes.io/name: alloy
7379
podSelector:
7480
matchLabels:
7581
app: naiserator

0 commit comments

Comments
 (0)