Skip to content

Commit

Permalink
fix(console): nfs path enable use url and memory use no-cache (tkesta…
Browse files Browse the repository at this point in the history
…ck#934)

* feat(console): nfs path can use ip

* feat(console): use k8s_node_mem_usage_no_cache
  • Loading branch information
jo-hnny committed Nov 26, 2020
1 parent 8c692dc commit d7b7a46
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 93 deletions.
6 changes: 3 additions & 3 deletions web/console/src/modules/alarmPolicy/constants/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export const AlarmPolicyMetrics = {
enable: true,
measurement: 'k8s_node',
statisticsPeriod: 1,
metricName: 'k8s_node_mem_usage',
metricName: 'k8s_node_mem_usage_no_cache',
evaluatorType: 'gt',
evaluatorValue: '90',
metricDisplayName: t('内存利用率'),
Expand Down Expand Up @@ -517,8 +517,8 @@ export const AlarmPolicyMetrics = {

export const MetricNameMap = {};

for (let key in AlarmPolicyMetrics) {
for (let metric of AlarmPolicyMetrics[key]) {
for (const key in AlarmPolicyMetrics) {
for (const metric of AlarmPolicyMetrics[key]) {
MetricNameMap[metric.metricName] = metric.metricDisplayName;
}
}
Loading

0 comments on commit d7b7a46

Please sign in to comment.