bugfix/fix-longterm (#697)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Updated the remote write configuration to support multiple endpoints,
allowing data ingestion from both short-term and long-term services for
improved flexibility.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: kklinch0 <kklinch0@gmail.com>
This commit is contained in:
klinch0
2025-03-14 12:58:16 +03:00
committed by GitHub
parent 0cb9e72f99
commit a2af07d1dc
2 changed files with 7 additions and 2 deletions

View File

@@ -10,7 +10,10 @@ spec:
promscrape.streamParse: "true"
promscrape.maxScrapeSize: 32MB
remoteWrite:
- url: {{ .Values.vmagent.remoteWrite.url | quote }}
{{- range .Values.vmagent.remoteWrite.urls }}
- url: {{ . | quote }}
{{- end }}
scrapeInterval: 30s
selectAllByDefault: true
additionalScrapeConfigs:

View File

@@ -306,7 +306,9 @@ vmagent:
cluster: cozystack
tenant: tenant-root
remoteWrite:
url: http://vminsert-shortterm.tenant-root.svc:8480/insert/0/prometheus
urls:
- http://vminsert-shortterm.tenant-root.svc:8480/insert/0/prometheus
- http://vminsert-longterm.tenant-root.svc:8480/insert/0/prometheus
fluent-bit:
readinessProbe: