Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add approved providers #31

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions graph_node_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def collect_graph_networks_metrics(client):
proofsTotal
offersTotal
providersRegisteredTotal
approvedProviders
effectorsTotal
capacityCommitmentsTotal
usdCollateralPerUnit
Expand Down Expand Up @@ -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']
Expand All @@ -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)
Expand Down
1 change: 1 addition & 0 deletions metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down