Create Metrics::PrometheusApiConfiguration relation
Background
To support multiple Prometheus instances connected to single project, we need to store API configuration details. In order to do that we need to create new database relation
Implementation
New Metrics::PrometheusApiConfiguration
relation and corresponding model need to be created. New table should have following structure
name | type |
---|---|
id | bigint |
api_url | text |
headers | jsonb |
cluster_id | bigint |
project_id | binint |
active | boolean |
and have foreign keys to clusters
and projects
tables
Intended can be viewed at POC MR !36977 (closed)
Core users are allowed to have only one external Prometheus configuration per project. EE users can have many. There is no limit on to Prometheus configuration added via gitlab managed applications.
Edited by Mikołaj Wawrzyniak