Metrics dashboard - present all available data sources
Background
To support multiple Prometheus instances connected to single project, we need to present users all available data sources for given project. So the one that is of interest can be selected for presentation
Implementation
Currently there are two possible data - sources, PromethuesService
entry, and Clusters::Applications::Prometheus
entry. First is unique per Project
entry (but is carried via Environment
), and second is unique per Cluster
entry. Selecting data source effectively means, selecting either Environment
entry, or Cluster
entry. This can be achieve with usage of GlobalId
For the MVC we should add new endpoint that will return list of all available data sources for given project along with their corresponding GlobalIds.
This endpoint will be than used to fill datasource_id
parameter implemented by #235807 (closed)