Skip to content

Commit 7544a80

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 0218ad9 commit 7544a80

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
@@ -132,7 +132,9 @@ class CentralCosIntegrationTest(BaseCosIntegrationTest):
132132

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

137139

138140
class BaseCharmOperationTest(test_utils.BaseCharmTest):

0 commit comments

Comments
 (0)