Fix lint
This commit is contained in:
parent
14bca24202
commit
67de29f7ab
1 changed files with 4 additions and 0 deletions
|
@ -86,14 +86,17 @@ var (
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// IncReloadCount increment the reload counter
|
||||||
func IncReloadCount() {
|
func IncReloadCount() {
|
||||||
reloadOperation.WithLabelValues(reloadLabel).Inc()
|
reloadOperation.WithLabelValues(reloadLabel).Inc()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IncReloadErrorCount increment the reload error counter
|
||||||
func IncReloadErrorCount() {
|
func IncReloadErrorCount() {
|
||||||
reloadOperationErrors.WithLabelValues(reloadLabel).Inc()
|
reloadOperationErrors.WithLabelValues(reloadLabel).Inc()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ConfigSuccess set a boolean flag according to the output of the controller configuration reload
|
||||||
func ConfigSuccess(success bool) {
|
func ConfigSuccess(success bool) {
|
||||||
if success {
|
if success {
|
||||||
ConfigSuccessTime()
|
ConfigSuccessTime()
|
||||||
|
@ -103,6 +106,7 @@ func ConfigSuccess(success bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ConfigSuccessTime set the current timestamp when the controller is successfully reloaded
|
||||||
func ConfigSuccessTime() {
|
func ConfigSuccessTime() {
|
||||||
configSuccessTime.Set(float64(time.Now().Unix()))
|
configSuccessTime.Set(float64(time.Now().Unix()))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue