forked from rook/rook
monitoring: increasing metrics scraping interval from 5s to 10s
let's increase the monitoring interval to match the default interval used by Prometheus when deployed by Ceph: 10s Closes: https://github.com/rook/rook/issues/13883 Signed-off-by: Redouane Kachach <rkachach@redhat.com>
This commit is contained in:
@@ -63,7 +63,7 @@ func GetServiceMonitor(name string, namespace string, portName string) *monitori
|
||||
{
|
||||
Port: portName,
|
||||
Path: "/metrics",
|
||||
Interval: "5s",
|
||||
Interval: "10s",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -27,7 +27,7 @@ func TestGetServiceMonitor(t *testing.T) {
|
||||
name := "rook-ceph-mgr"
|
||||
namespace := "rook-ceph"
|
||||
port := "http-metrics"
|
||||
interval := monitoringv1.Duration("5s")
|
||||
interval := monitoringv1.Duration("10s")
|
||||
servicemonitor := GetServiceMonitor(name, namespace, port)
|
||||
assert.Equal(t, name, servicemonitor.GetName())
|
||||
assert.Equal(t, namespace, servicemonitor.GetNamespace())
|
||||
|
||||
Reference in New Issue
Block a user