Skip to content

Commit 34738b4

Browse files
committed
ovn: Change metric that verifies OVN exporter
It is possible for OVN exporter to run even if it can't connect to OVN sockets. In that case it will report only reduced number of metrics. We need to use metric that confirms that the exporter is successfully connected to the OVN. Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
1 parent d874cc5 commit 34738b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zaza/openstack/charm_tests/ovn/tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ class CentralCosIntegrationTest(BaseCosIntegrationTest):
133133

134134
APPLICATION_NAME = 'ovn-central'
135135
DASHBOARD = 'Juju: OVN Central (OVSDB)'
136-
PROM_QUERY = 'ovn_up'
136+
# make sure to test metric that requires successful connection
137+
# of the exporter to the OVN sockets
138+
PROM_QUERY = 'ovn_coverage_total'
137139

138140

139141
class BaseCharmOperationTest(test_utils.BaseCharmTest):

0 commit comments

Comments
 (0)