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>
This commit is contained in:
Martin Kalcok
2025-05-09 12:57:53 +02:00
parent 42e82ce2ba
commit b5ac43aceb
+3 -1
View File
@@ -133,7 +133,9 @@ class CentralCosIntegrationTest(BaseCosIntegrationTest):
APPLICATION_NAME = 'ovn-central'
DASHBOARD = 'Juju: OVN Central (OVSDB)'
PROM_QUERY = 'ovn_up'
# make sure to test metric that requires successful connection
# of the exporter to the OVN sockets
PROM_QUERY = 'ovn_coverage_total'
class BaseCharmOperationTest(test_utils.BaseCharmTest):