Skip to content

Commit 2ecbc5e

Browse files
committed
chore(module): get rid of scrapeconfig
Signed-off-by: Pavel Tishkov <pavel.tishkov@flant.com>
1 parent d5b275f commit 2ecbc5e

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
lines changed

templates/virtualization-controller/scrape-config.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{- if (.Values.global.enabledModules | has "operator-prometheus-crd") }}
2+
---
3+
apiVersion: monitoring.coreos.com/v1
4+
kind: ServiceMonitor
5+
metadata:
6+
name: virtualization-controller
7+
namespace: d8-monitoring
8+
{{- include "helm_lib_module_labels" (list . (dict "app" "virtualization-controller" "prometheus" "main")) | nindent 2 }}
9+
spec:
10+
endpoints:
11+
- bearerTokenSecret:
12+
key: token
13+
name: prometheus-token
14+
path: /metrics
15+
port: metrics
16+
scheme: https
17+
tlsConfig:
18+
insecureSkipVerify: true
19+
metricRelabelings:
20+
# exported_namespace -> namespace
21+
- action: replace
22+
sourceLabels:
23+
- exported_namespace
24+
targetLabel: namespace
25+
namespaceSelector:
26+
matchNames:
27+
- d8-{{ .Chart.Name }}
28+
selector:
29+
matchLabels:
30+
app: "virtualization-controller"
31+
32+
{{- end }}

0 commit comments

Comments
 (0)