monitoring, logging model minor updates
Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
@@ -253,8 +253,8 @@ func FluentbitOutputInsert(output fb.OutputPlugin) *FluentbitOutputsResult {
|
||||
glog.Errorln(err)
|
||||
}
|
||||
|
||||
// When adding a new output for the first time, one should always set it disabled
|
||||
output.Enable = false
|
||||
// When adding a new output for the first time, one should always set it enabled
|
||||
output.Enable = true
|
||||
output.Id = uuid.New().String()
|
||||
output.Updatetime = time.Now()
|
||||
|
||||
|
||||
@@ -411,9 +411,6 @@ func MonitorAllWorkspaces(monitoringRequest *client.MonitoringRequestParams) *Fo
|
||||
}
|
||||
var filterMetricsName []string
|
||||
for _, metricName := range WorkspaceMetricsNames {
|
||||
if metricName == MetricNameWorkspaceAllProjectCount {
|
||||
continue
|
||||
}
|
||||
bol, err := regexp.MatchString(metricsFilter, metricName)
|
||||
if err == nil && bol {
|
||||
filterMetricsName = append(filterMetricsName, metricName)
|
||||
|
||||
Reference in New Issue
Block a user