From eca4f35d0ccee9880dcdaedd06ce6923e677ee6e Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Sat, 26 Mar 2022 17:36:50 +0800 Subject: [PATCH] add metric config --- src/components/Select.vue | 39 ++-- src/hooks/useProcessor.ts | 4 +- .../configuration/widget/metric/Index.vue | 8 +- .../configuration/widget/metric/Standard.vue | 15 +- .../related/topology/components/Graph.vue | 46 +++-- .../related/topology/components/Metrics.vue | 168 ++++++++++++++++++ .../related/topology/components/Settings.vue | 109 ++++++++++-- 7 files changed, 334 insertions(+), 55 deletions(-) create mode 100644 src/views/dashboard/related/topology/components/Metrics.vue diff --git a/src/components/Select.vue b/src/components/Select.vue index 571ef8af..0c101d56 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -13,17 +13,19 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> diff --git a/src/views/dashboard/related/topology/components/Settings.vue b/src/views/dashboard/related/topology/components/Settings.vue index 21e15c8e..29c99696 100644 --- a/src/views/dashboard/related/topology/components/Settings.vue +++ b/src/views/dashboard/related/topology/components/Settings.vue @@ -25,7 +25,27 @@ limitations under the License. --> class="inputs" :clearable="true" /> -
{{ t("linkServerMetrics") }}
+
+ {{ t("linkServerMetrics") }} + + + + +
:options="states.linkMetricList" size="small" placeholder="Select metrics" - @change="changeLinkServerMetrics" + @change="updateLinkServerMetrics" />
- {{ t("linkClientMetrics") }} + {{ t("linkClientMetrics") }} + + + +
:options="states.linkMetricList" size="small" placeholder="Select metrics" - @change="changeLinkClientMetrics" + @change="updateLinkClientMetrics" />
@@ -100,7 +138,27 @@ limitations under the License. --> /> -
{{ t("nodeMetrics") }}
+
+ {{ t("nodeMetrics") }} + + + + +
:options="states.nodeMetricList" size="small" placeholder="Select metrics" - @change="changeNodeMetrics" + @change="updateNodeMetrics" />
@@ -177,7 +235,7 @@ limitations under the License. -->