4 ms·
> There's also YAML Omg YAML. Here's an example for you. - external: metric: name: kafka_consumer_group_lag selector:
by EdwardDiego 7y ago
> There's also YAML
Omg YAML. Here's an example for you.
- external:
metric:
name: kafka_consumer_group_lag
selector:
matchLabels:
topic: rtb_trx_records
consumer_group: trx-record-validator
target:
type: Value
value: 30000
type: External
It seems like the "type: External" should line up with "metric" and "target" but no, it needs to line up with the word "external" - not the dash, but the word after a space after the dash. Using YAML frequently reminds me of the quote "Be open minded, but not so open minded that your brains fall out".
- alkonaut 7y agoThings like these should just be code in my opinion.
- yellowapple 7y agoI'm kinda surprised that's even valid YAML. I was under the impression that arrays and dicts can't mix like that.