Skip to content

Commit

Permalink
make prom metrics lister log more verbose
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Zhu <zzqshu@126.com>
  • Loading branch information
zqzten committed Dec 14, 2023
1 parent ce915ec commit 61c2d9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/metric/provider/prometheus/runnable.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (p *MetricProvider) Start(ctx context.Context) error {
Steps: math.MaxInt32,
Cap: p.metricsRelistInterval,
}, func(ctx context.Context) (bool, error) {
metricsListerLog.V(2).Info("start to relist metrics")
metricsListerLog.V(1).Info("start to relist metrics")
if err := p.updateObjectSeries(ctx); err != nil {
metricsListerLog.Error(err, "failed to update object series")
return false, nil
Expand All @@ -58,6 +58,7 @@ func (p *MetricProvider) Start(ctx context.Context) error {
metricsListerLog.Error(err, "failed to update external series")
return false, nil
}
metricsListerLog.V(1).Info("metrics relisted successfully")
return true, nil
}); err != nil {
metricsListerLog.Error(err, "backoff stopped with unexpected error")
Expand Down

0 comments on commit 61c2d9f

Please sign in to comment.