Skip to content

Conversation

@aldro61
Copy link
Collaborator

@aldro61 aldro61 commented Dec 8, 2025

Summary

Adds automated daily monitoring of pool usage with Weights & Biases integration:

  • Monitor Script: monitor_pool_usage.py tracks user creations (tasks run) across all ServiceNow instances
  • Metrics Logged: Daily and hourly task counts for each instance + total across all instances
  • W&B Integration: Creates separate persistent runs for each instance and total, allowing time series visualization
  • GitHub Actions: Daily cron job at midnight UTC to automatically collect and log metrics
  • Time Series Visualization: Timestamps enable proper datetime-based plotting in W&B

Test plan

  • Manually run python monitor_pool_usage.py to verify data collection
  • Verify W&B runs created with proper metrics (daily_tasks_run, hourly_tasks_run, timestamp, date)
  • Confirm time series data shows in W&B dashboard
  • Add WANDB_API_KEY secret to GitHub repo settings
  • Test GitHub Actions workflow with manual trigger
  • Verify daily cron job runs successfully

🤖 Generated with Claude Code

aldro61 and others added 3 commits December 7, 2025 23:49
- Add monitor_pool_usage.py script to track task runs across instances
- Log hourly and daily usage metrics to Weights & Biases
- Create separate W&B runs for each instance and total usage
- Add GitHub Actions workflow for daily automated monitoring
- Update requirements.txt to include wandb dependency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@aldro61 aldro61 merged commit 743bdff into main Dec 8, 2025
2 of 5 checks passed
@aldro61 aldro61 deleted the pool-monitoring branch December 8, 2025 07:52
@aldro61 aldro61 mentioned this pull request Dec 8, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants