Open
Description
The docs/sample-config.yaml
is not usable as it is currently. Issues arises due to doublequote-quoted strings in the YAML that contain other double-quotes, leading to parsing errors.
When attempting to start the adapter with the command:
./adapter --config=docs/sample-config.yaml
The following error is encountered:
I0506 11:35:38.062439 3062873 adapter.go:113] successfully using in-cluster auth
F0506 11:35:38.062573 3062873 adapter.go:340] unable to load metrics discovery config: unable to load metrics discovery configuration: unable to parse metrics discovery config: yaml: line 54: did not find expected key
Additional details from yamlfix
:
ruyaml.parser.ParserError: while parsing a block mapping
in "<unicode string>", line 13, column 3:
- seriesQuery: '{__name__=~"^conta ...
^ (line: 13)
expected <block end>, but found '<scalar>'
in "<unicode string>", line 30, column 70:
... {<<.LabelMatchers>>,container!="POD"}[2m])) by (<<.GroupBy>>)"
^ (line: 30)
Seems like there are multiple occasions of those quoting issue in the values for metricsQuery
, for example here: