diff options
author | syasonik <syasonik@gitlab.com> | 2019-06-05 16:43:50 +0300 |
---|---|---|
committer | syasonik <syasonik@gitlab.com> | 2019-06-06 13:43:50 +0300 |
commit | 54dd44030b052a1456c26e90742b227943d600be (patch) | |
tree | f3e03df0ec7506b8916e1114e30f74052c3f2e73 /spec/fixtures/lib/gitlab/metrics/dashboard | |
parent | b46b38ff9fb09692aa02efd377e44756e1caabf2 (diff) |
Expose prometheus endpoint per metric in dashboard
Adds a new stage to dashboard processesing step for the
EnvironmentsController::metrics_dashboard endpoint.
Allows the front end to avoid generating the endpoint
unitutive string mutations.
Diffstat (limited to 'spec/fixtures/lib/gitlab/metrics/dashboard')
-rw-r--r-- | spec/fixtures/lib/gitlab/metrics/dashboard/schemas/metrics.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/metrics.json b/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/metrics.json index 2d0af57ec2c..33393805464 100644 --- a/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/metrics.json +++ b/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/metrics.json @@ -2,7 +2,8 @@ "type": "object", "required": [ "unit", - "label" + "label", + "prometheus_endpoint_path" ], "oneOf": [ { "required": ["query"] }, @@ -14,7 +15,8 @@ "query": { "type": "string" }, "unit": { "type": "string" }, "label": { "type": "string" }, - "track": { "type": "string" } + "track": { "type": "string" }, + "prometheus_endpoint_path": { "type": "string" } }, "additionalProperties": false } |