Commit cd9fc09e authored by Mikolaj Wawrzyniak's avatar Mikolaj Wawrzyniak

Include PanelIdsInserter stage into sequence

In order to utilise added PanelIdsInserter stage its class needs to be
included into SEQUENCE constant in dashboard processing services.
parent 4a2c5f31
...@@ -11,6 +11,7 @@ module Metrics ...@@ -11,6 +11,7 @@ module Metrics
SEQUENCE = [ SEQUENCE = [
STAGES::CommonMetricsInserter, STAGES::CommonMetricsInserter,
STAGES::EndpointInserter, STAGES::EndpointInserter,
STAGES::PanelIdsInserter,
STAGES::Sorter STAGES::Sorter
].freeze ].freeze
......
...@@ -10,7 +10,10 @@ module Metrics ...@@ -10,7 +10,10 @@ module Metrics
class GitlabAlertEmbedService < ::Metrics::Dashboard::BaseEmbedService class GitlabAlertEmbedService < ::Metrics::Dashboard::BaseEmbedService
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
SEQUENCE = [STAGES::EndpointInserter].freeze SEQUENCE = [
STAGES::EndpointInserter,
STAGES::PanelIdsInserter
].freeze
class << self class << self
# Determines whether the provided params are sufficient # Determines whether the provided params are sufficient
......
...@@ -10,7 +10,8 @@ module Metrics ...@@ -10,7 +10,8 @@ module Metrics
include ReactiveCaching include ReactiveCaching
SEQUENCE = [ SEQUENCE = [
::Gitlab::Metrics::Dashboard::Stages::GrafanaFormatter ::Gitlab::Metrics::Dashboard::Stages::GrafanaFormatter,
::Gitlab::Metrics::Dashboard::Stages::PanelIdsInserter
].freeze ].freeze
self.reactive_cache_key = ->(service) { service.cache_key } self.reactive_cache_key = ->(service) { service.cache_key }
......
...@@ -11,6 +11,7 @@ module Metrics ...@@ -11,6 +11,7 @@ module Metrics
SEQUENCE = [ SEQUENCE = [
STAGES::EndpointInserter, STAGES::EndpointInserter,
STAGES::PanelIdsInserter,
STAGES::Sorter STAGES::Sorter
].freeze ].freeze
......
...@@ -11,6 +11,7 @@ module Metrics ...@@ -11,6 +11,7 @@ module Metrics
SEQUENCE = [ SEQUENCE = [
STAGES::CustomMetricsInserter, STAGES::CustomMetricsInserter,
STAGES::EndpointInserter, STAGES::EndpointInserter,
STAGES::PanelIdsInserter,
STAGES::Sorter STAGES::Sorter
].freeze ].freeze
......
...@@ -13,6 +13,7 @@ module Metrics ...@@ -13,6 +13,7 @@ module Metrics
STAGES::CustomMetricsInserter, STAGES::CustomMetricsInserter,
STAGES::CustomMetricsDetailsInserter, STAGES::CustomMetricsDetailsInserter,
STAGES::EndpointInserter, STAGES::EndpointInserter,
STAGES::PanelIdsInserter,
STAGES::Sorter STAGES::Sorter
].freeze ].freeze
......
...@@ -10,6 +10,7 @@ module Metrics ...@@ -10,6 +10,7 @@ module Metrics
SEQUENCE = [ SEQUENCE = [
STAGES::ClusterEndpointInserter, STAGES::ClusterEndpointInserter,
STAGES::PanelIdsInserter,
STAGES::Sorter STAGES::Sorter
].freeze ].freeze
......
...@@ -28,7 +28,8 @@ module Metrics ...@@ -28,7 +28,8 @@ module Metrics
def sequence def sequence
[ [
STAGES::ClusterEndpointInserter STAGES::ClusterEndpointInserter,
STAGES::PanelIdsInserter
] ]
end end
end end
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
], ],
"properties": { "properties": {
"title": { "type": "string" }, "title": { "type": "string" },
"id": { "type": "string" },
"type": { "type": "string" }, "type": { "type": "string" },
"y_label": { "type": "string" }, "y_label": { "type": "string" },
"y_axis": { "$ref": "axis.json" }, "y_axis": { "$ref": "axis.json" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment