Skip to content

Commit

Permalink
fix metric interval (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: haorenfsa <[email protected]>
  • Loading branch information
haorenfsa authored Aug 23, 2024
1 parent a90d943 commit 5987b30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controllers/podmonitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ func (r *MilvusReconciler) updatePodMonitor(
},
}
}
for i := range podmonitor.Spec.PodMetricsEndpoints {
podmonitor.Spec.PodMetricsEndpoints[i].Interval = interval
}

podmonitor.Spec.NamespaceSelector = monitoringv1.NamespaceSelector{
MatchNames: []string{mc.Namespace},
Expand Down

0 comments on commit 5987b30

Please sign in to comment.