diff --git a/graph_node_metrics.py b/graph_node_metrics.py index a667e51..40945af 100644 --- a/graph_node_metrics.py +++ b/graph_node_metrics.py @@ -245,6 +245,7 @@ def collect_graph_networks_metrics(client): proofsTotal offersTotal providersRegisteredTotal + approvedProviders effectorsTotal capacityCommitmentsTotal usdCollateralPerUnit @@ -273,6 +274,7 @@ def collect_graph_networks_metrics(client): proofsTotal = graphNetwork['proofsTotal'] offersTotal = graphNetwork['offersTotal'] providersRegisteredTotal = graphNetwork['providersRegisteredTotal'] + approvedProviders = graphNetwork['approvedProviders'] effectorsTotal = graphNetwork['effectorsTotal'] commitmentCreatedCount = graphNetwork['capacityCommitmentsTotal'] usdCollateralPerUnit = graphNetwork['usdCollateralPerUnit'] @@ -294,6 +296,7 @@ def collect_graph_networks_metrics(client): PROOFS_TOTAL.set(proofsTotal) OFFERS_TOTAL.set(offersTotal) PROVIDERS_TOTAL.set(providersRegisteredTotal) + APPROVED_PROVIDERS.set(approvedProviders) EFFECTORS_TOTAL.set(effectorsTotal) COMMITMENT_CREATED_COUNT.set(commitmentCreatedCount) USD_COLLATERAL_PER_UNIT.set(usdCollateralPerUnit) diff --git a/metrics.py b/metrics.py index a176c0e..fc9a259 100644 --- a/metrics.py +++ b/metrics.py @@ -43,6 +43,7 @@ PROOFS_TOTAL = Gauge("fluence_network_proofs_total", "Total count of submitted proofs", registry=registry) OFFERS_TOTAL = Gauge("fluence_network_offers_total", "Total count of created offers", registry=registry) PROVIDERS_TOTAL = Gauge("fluence_network_providers_total", "Total count of providers", registry=registry) +APPROVED_PROVIDERS = Gauge("fluence_network_approved_providers_total", "Total count of approved providers", registry=registry) EFFECTORS_TOTAL = Gauge("fluence_network_effectors_total", "Total count of effectors", registry=registry) COMMITMENT_CREATED_COUNT = Gauge("fluence_network_commitment_created_count", "Total count of CommitmentCreated events", registry=registry)