keptn-contrib/dynatrace-service

Generate error if multiple dashboards match query

arthurpitman opened this issue · 0 comments

Describe the bug
Currently when deriving SLIs and SLOs from a dashboard, the dynatrace-service uses the first dashboard that it encounters with a name that matches KQG;project=<project>;service=<service>;stage=<stage>, where <project>, <service> and <stage> are taken from the sh.keptn.event.get-sli.triggered event.

In instances where multiple dashboards match this pattern this causes inconsistent behavior as documented in #735.

Versions

  • Dynatrace-service version: 0.21.0

Expected behavior

If multiple dashboards are found that match the query KQG;..., the dynatrace-service should stop processing with result=fail and a message such as More than one dashboard matches query.