alerta / prometheus-config

Prometheus config for Alerta
MIT License
255 stars 102 forks source link

How to altera list type field convert to a Prometheus rule configuration #23

Closed net592 closed 5 years ago

net592 commented 5 years ago

How to altera convert to a Prometheus rule configuration example : alerta data: "correlate": ["cpu","load"],

Prometheus rules: labels: correlate: ['cpu','load'] or labels: correlate:

All failure ./promtool check rules Prometheus.rules
Checking Prometheus.rules FAILED: yaml: unmarshal errors: line : cannot unmarshal !!seq into string

satterly commented 5 years ago

Use ...

labels:
  correlate: cpu,load