weaveworks / grafanalib

Python library for building Grafana dashboards
Apache License 2.0
1.86k stars 309 forks source link

AlertRulev8 generation uses datasource name as a datasource uid #570

Open KacperLegowski opened 1 year ago

KacperLegowski commented 1 year ago

What you expected to happen?

Proper generation of AlertRulev8

What happened?

AlertRulev8 generation puts datasource name as a datasource uid.

How to reproduce it?

  1. Create an AlertRulev8 and add it to AlertGroup
  2. Run generate-alertgroup command
  3. See that datasource uid is the same as datasource name which is wrong