Closed sjtindell closed 2 months ago
Banged my head on this and then realized if it is doing a concat of two lists before converting to yaml I can just add a straight yaml list. No need to pass in an array of multiline strings in the values file. My mistake.
values.yaml
server:
scrape:
enabled: true
extraScrapeConfigs:
- job_name: 'node-exporter'
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
- source_labels: [__meta_kubernetes_endpoints_name]
regex: 'node-exporter-prometheus-node-exporter'
action: keep
and
helm template vmsingle -f vmetrics-single-values.yaml vm/victoria-metrics-single
works as expected.
Can we use --set-file
with this implementation?
Can we use
--set-file
with this implementation?
Hello! I think using -promscrape.config
to file mounted by configmap should work, no?
https://github.com/VictoriaMetrics/VictoriaMetrics/blob/70773f53d75fc7f0589f464381c37826ed1b0912/README.md?plain=1#L2407
Closing this issue, as it's answered here
Using the victoria-metrics-single helm chart
https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-single
I am trying to set extraScrapeConfigs.
I would like to be able to use a values file vmetrics-single-values.yaml like
and
or set this on the command line with a file like extraScrapeConfigs.yaml contents
and
But the way the code is written and was just merged at
https://github.com/VictoriaMetrics/helm-charts/commit/1badd2ac5c0f8d68bf7efe56f4a1be8818b22651
this expects a list and throws an error
ISSUE: I am not sure how to pass a list to this value. I need to pass a list of multiline strings via the helm values file or --set-file.
In the prometheus chart they appear to do so as follows
https://github.com/prometheus-community/helm-charts/blob/b610168cb735070dc75cb5d4d27b65f1ddfcec24/charts/prometheus/templates/server/cm.yaml#L42
using the Helm tpl function
https://helm.sh/docs/howto/charts_tips_and_tricks/
like so
https://github.com/prometheus-community/helm-charts/blob/b610168cb735070dc75cb5d4d27b65f1ddfcec24/charts/prometheus/templates/server/cm.yaml#L42