Skip to content

Commit

Permalink
Track gossipValidationQueueConcurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Feb 28, 2023
1 parent 319a24e commit 99cb497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/metrics/metrics/lodestar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export function createLodestarMetrics(
}),
gossipValidationQueueConcurrency: register.gauge<"topic">({
name: "lodestar_gossip_validation_queue_concurrency",
help: "Current concurrency of gossip validation queue",
help: "Current count of jobs being run on network processor for topic",
labelNames: ["topic"],
}),

Expand Down
1 change: 1 addition & 0 deletions packages/beacon-node/src/network/processor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export class NetworkProcessor {
metrics.gossipValidationQueueLength.addCollect(() => {
for (const topic of executeGossipWorkOrder) {
metrics.gossipValidationQueueLength.set({topic}, this.gossipQueues[topic].length);
metrics.gossipValidationQueueConcurrency.set({topic}, this.gossipTopicConcurrency[topic]);
}
});
}
Expand Down

0 comments on commit 99cb497

Please sign in to comment.