Skip to content

Commit b363bb3

Browse files
Mattia Eleuterimattia-eleuteri
authored andcommitted
[monitoring] Add additionalScrapeConfigs support to tenant vmagent
Signed-off-by: Mattia Eleuteri <[email protected]> Signed-off-by: mattia-eleuteri <[email protected]>
1 parent a13481b commit b363bb3

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎packages/extra/monitoring/values.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,6 @@ vmagent:
178178
urls:
179179
- http://vminsert-shortterm:8480/insert/0/prometheus
180180
- http://vminsert-longterm:8480/insert/0/prometheus
181+
## additionalScrapeConfigs:
182+
## name: my-secret
183+
## key: scrape-configs.yaml

‎packages/system/monitoring/templates/vm/vmagent.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ spec:
2121

2222
scrapeInterval: 30s
2323
selectAllByDefault: false
24+
{{- with .Values.vmagent.additionalScrapeConfigs }}
25+
additionalScrapeConfigs:
26+
{{- toYaml . | nindent 4 }}
27+
{{- end }}
2428
podScrapeNamespaceSelector:
2529
matchLabels:
2630
namespace.cozystack.io/monitoring: {{ .Release.Namespace }}

‎packages/system/monitoring/values.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,7 @@ vmagent:
7979
remoteWrite:
8080
urls:
8181
- http://vminsert-shortterm:8480/insert/0/prometheus
82-
- http://vminsert-longterm:8480/insert/0/prometheus
82+
- http://vminsert-longterm:8480/insert/0/prometheus
83+
## additionalScrapeConfigs:
84+
## name: my-secret
85+
## key: scrape-configs.yaml

0 commit comments

Comments
 (0)