-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: eureka同步时候,出现性能超时问题 * 删除batch逻辑 * feat: 调整更新事件,增加时间的对象成功更新 * Refactor test dir (#995) (#2) Co-authored-by: liaochuntao <[email protected]> * fix:包命名调整 --------- Co-authored-by: liaochuntao <[email protected]>
- Loading branch information
1 parent
e0a89be
commit 248df93
Showing
27 changed files
with
1,486 additions
and
1,147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/** | ||
* Tencent is pleased to support the open source community by making Polaris available. | ||
* | ||
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* Licensed under the BSD 3-Clause License (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://opensource.org/licenses/BSD-3-Clause | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed | ||
* under the License is distributed on an "AS IS" BASIS, 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. | ||
*/ | ||
|
||
package metrics | ||
|
||
import ( | ||
"github.com/prometheus/client_golang/prometheus" | ||
|
||
"github.com/polarismesh/polaris/common/utils" | ||
) | ||
|
||
func registerConfigFileMetrics() { | ||
GetRegistry().MustRegister( | ||
configGroupTotal, | ||
configFileTotal, | ||
releaseConfigFileTotal, | ||
) | ||
} | ||
|
||
var ( | ||
configGroupTotal = prometheus.NewGaugeVec(prometheus.GaugeOpts{ | ||
Name: "config_group_count", | ||
Help: "polaris config group total number", | ||
ConstLabels: map[string]string{ | ||
LabelServerNode: utils.LocalHost, | ||
}, | ||
}, []string{LabelNamespace}) | ||
|
||
configFileTotal = prometheus.NewGaugeVec(prometheus.GaugeOpts{ | ||
Name: "config_file_count", | ||
Help: "total number of config_file each config group", | ||
ConstLabels: map[string]string{ | ||
LabelServerNode: utils.LocalHost, | ||
}, | ||
}, []string{LabelNamespace, LabelGroup}) | ||
|
||
releaseConfigFileTotal = prometheus.NewGaugeVec(prometheus.GaugeOpts{ | ||
Name: "config_release_file_count", | ||
Help: "total number of config_release_file each config group", | ||
ConstLabels: map[string]string{ | ||
LabelServerNode: utils.LocalHost, | ||
}, | ||
}, []string{LabelNamespace, LabelGroup}) | ||
) | ||
|
||
func GetConfigGroupTotal() *prometheus.GaugeVec { | ||
return configGroupTotal | ||
} | ||
|
||
func GetConfigFileTotal() *prometheus.GaugeVec { | ||
return configFileTotal | ||
} | ||
|
||
func GetReleaseConfigFileTotal() *prometheus.GaugeVec { | ||
return releaseConfigFileTotal | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.