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:
Redouane Kachach
2024-03-13 13:29:01 +01:00
parent 15f92a175d
commit daec93eaaa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func GetServiceMonitor(name string, namespace string, portName string) *monitori
{
Port: portName,
Path: "/metrics",
Interval: "5s",
Interval: "10s",
},
},
},
+1 -1
View File
@@ -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())