SIENTIAPDE-1083: add prometheus metrics to ingestor.
This commit is contained in:
@@ -41,28 +41,28 @@ def test_app_up():
|
||||
assert set(metrics.APP_UP._labelnames) == {"pod_id"}
|
||||
|
||||
|
||||
def test_ingestors_ativos():
|
||||
"""Verify the definition of INGESTORS_ATIVOS."""
|
||||
assert metrics.INGESTORS_ATIVOS is not None
|
||||
assert isinstance(metrics.INGESTORS_ATIVOS, Gauge)
|
||||
assert metrics.INGESTORS_ATIVOS._name == "ingestor_active_total"
|
||||
assert set(metrics.INGESTORS_ATIVOS._labelnames) == set()
|
||||
def test_active_ingestors():
|
||||
"""Verify the definition of ACTIVE_INGESTORS."""
|
||||
assert metrics.ACTIVE_INGESTORS is not None
|
||||
assert isinstance(metrics.ACTIVE_INGESTORS, Gauge)
|
||||
assert metrics.ACTIVE_INGESTORS._name == "ingestor_active_total"
|
||||
assert set(metrics.ACTIVE_INGESTORS._labelnames) == set()
|
||||
|
||||
|
||||
def test_slots_totais():
|
||||
"""Verify the definition of SLOTS_TOTAIS."""
|
||||
assert metrics.SLOTS_TOTAIS is not None
|
||||
assert isinstance(metrics.SLOTS_TOTAIS, Gauge)
|
||||
assert metrics.SLOTS_TOTAIS._name == "ingestor_slots_total"
|
||||
assert set(metrics.SLOTS_TOTAIS._labelnames) == set()
|
||||
def test_slots_total():
|
||||
"""Verify the definition of SLOTS_TOTAL."""
|
||||
assert metrics.SLOTS_TOTAL is not None
|
||||
assert isinstance(metrics.SLOTS_TOTAL, Gauge)
|
||||
assert metrics.SLOTS_TOTAL._name == "ingestor_slots_total"
|
||||
assert set(metrics.SLOTS_TOTAL._labelnames) == set()
|
||||
|
||||
|
||||
def test_leases_totais():
|
||||
"""Verify the definition of LEASES_TOTAIS."""
|
||||
assert metrics.LEASES_TOTAIS is not None
|
||||
assert isinstance(metrics.LEASES_TOTAIS, Gauge)
|
||||
assert metrics.LEASES_TOTAIS._name == "ingestor_leases_total"
|
||||
assert set(metrics.LEASES_TOTAIS._labelnames) == set()
|
||||
def test_leases_total():
|
||||
"""Verify the definition of LEASES_TOTAL."""
|
||||
assert metrics.LEASES_TOTAL is not None
|
||||
assert isinstance(metrics.LEASES_TOTAL, Gauge)
|
||||
assert metrics.LEASES_TOTAL._name == "ingestor_leases_total"
|
||||
assert set(metrics.LEASES_TOTAL._labelnames) == set()
|
||||
|
||||
|
||||
def test_slots_managed():
|
||||
|
||||
Reference in New Issue
Block a user