Dynatrace / backstage-plugin

Dynatrace Backstage Plugin
Apache License 2.0
21 stars 3 forks source link

feat: Environment limitation for custom queries #134

Closed blasget closed 3 months ago

blasget commented 3 months ago

Introduction

Technical solution before this PR

Custom queries defined in the app-config.yaml or catalog-info.yaml were executed against all specified environments.

Technical solution after this PR

It is possible to specify the environments in which each query defined in the app-config.yaml and catalog-info.yaml is executed.

By default, queries are executed against all defined environments.

The configuration looks like this:

dynatrace:
  queries:
    - id: davis-events
      description: Fetches all Davis events
      environments:
        - tenant1
        - tenant2
      query: >
        fetch events | filter event.kind == "DAVIS_EVENT" | fields event.kind, timestamp

:heavy_check_mark: Common checklist