<.Values.config>: wrong type for value; expected string; got map[string]interface {} while installing cloudwatch exporter

1,702 views
Skip to first unread message

Paras Joshi

unread,
Feb 18, 2021, 11:14:01 AM2/18/21
to Prometheus Users
Hello all ,
I am trying to install cloudwatch exporter . It gets installed when i am using default values.yaml.

But when i am updating the values.yaml and putting config for aws namespaces and metrics. I am getting errors -->

Below is my current values.yaml 

# Configuration is rendered with `tpl` function, therefore you can use any Helm variables and/or templates here
config:
region: eu-west-1
metrics:
- aws_namespace: AWS/ELB
  aws_metric_name: HealthyHostCount
  aws_dimensions: [AvailabilityZone, LoadBalancerName]
  aws_statistics: [Average]

- aws_namespace: AWS/ELB
  aws_metric_name: UnHealthyHostCount
  aws_dimensions: [AvailabilityZone, LoadBalancerName]
  aws_statistics: [Average]

After adding these values , HELM LINT gives errors -->

coalesce.go:163: warning: skipped value for config: Not a table.
Error: template: prometheus-cloudwatch-exporter/templates/deployment.yaml:27:28: executing "prometheus-cloudwatch-exporter/templates/deployment.yaml" at <include (print $.Template.BasePath "/configmap.yaml") .>: error calling include: template: prometheus-cloudwatch-exporter/templates/configmap.yaml:13:18: executing "prometheus-cloudwatch-exporter/templates/configmap.yaml" at <.Values.config>: wrong type for value; expected string; got map[string]interface {}

Could you please help me what is wrong with the values in config . How should i add aws values .
Reply all
Reply to author
Forward
0 new messages