From 9451d3aaee885393e7d1d714342a74ca9b51cf8a Mon Sep 17 00:00:00 2001 From: okozachenko Date: Tue, 28 Apr 2020 18:33:46 +0300 Subject: [PATCH] Adjust the mcrouter metrics scrap interval from 15 to 30 sec Change-Id: I29d20648aedf0de91e7ccabd0181ca4523bcc64f --- openstack_operator/templates/mcrouter/podmonitor.yml.j2 | 2 +- openstack_operator/tests/unit/base.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openstack_operator/templates/mcrouter/podmonitor.yml.j2 b/openstack_operator/templates/mcrouter/podmonitor.yml.j2 index 22e13d52..31a284f8 100644 --- a/openstack_operator/templates/mcrouter/podmonitor.yml.j2 +++ b/openstack_operator/templates/mcrouter/podmonitor.yml.j2 @@ -21,7 +21,7 @@ metadata: {{ labels("mcrouter", name) | indent(4) }} spec: podMetricsEndpoints: - - interval: 15s + - interval: 30s path: /metrics port: metrics selector: diff --git a/openstack_operator/tests/unit/base.py b/openstack_operator/tests/unit/base.py index b93a0892..28ebff31 100644 --- a/openstack_operator/tests/unit/base.py +++ b/openstack_operator/tests/unit/base.py @@ -32,6 +32,8 @@ class KubernetesObjectTestCase(testtools.TestCase): """Base class for Kubernetes object tests.""" SAMPLES_PATH = 'config/samples' + SAMPLE_FILE = '' + TEMPLATE_FILE = '' @classmethod def setUpClass(cls):