We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, is it possible to expose the stats via prometheus
The monitor option just shows on console
monitor
The text was updated successfully, but these errors were encountered:
const puppeteer = addExtra(vanillaPuppeteer) const cluster = await Cluster.launch() const clusterSize = cluster.jobQueue.size() clusterSizeMetric.set(clusterSize) const availableWorkers = cluster.workersAvail.length const busyWorkers = cluster.workersBusy.length const totalWorkers = cluster.workers.length crawlerWorkerQueueMetric.labels('available').set(availableWorkers) crawlerWorkerQueueMetric.labels('busy').set(busyWorkers) crawlerWorkerQueueMetric.labels('total').set(totalWorkers) const cpuUsage = cluster.systemMonitor.cpuUsage const memory = cluster.systemMonitor.memoryUsage crawlerClusterTelemetryMetric.labels('cpu_usage').set(cpuUsage) crawlerClusterTelemetryMetric.labels('memory_usage').set(memory)
Sorry, something went wrong.
https://www.npmjs.com/package/@devgo/puppeteer-cluster?activeTab=readme#clustergetmonitorobject
I've released it with what's in the PR and a few features I need, so check it out and do with it what you will.
No branches or pull requests
Hi, is it possible to expose the stats via prometheus
The
monitor
option just shows on consoleThe text was updated successfully, but these errors were encountered: