coreweave-webhooks-events
Monitor CoreWeave cluster events and GPU workload status. Use when tracking pod lifecycle events, monitoring GPU utilization, or alerting on inference service health changes. Trigger with phrases like "coreweave events", "coreweave monitoring", "coreweave pod alerts", "coreweave gpu monitoring".
- License 许可
- MIT
- 最近更新
- 2026-07-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- coreweave-webhooks-events
- tags
- [ "saas", "gpu-cloud", "kubernetes", "inference", "coreweave" ]
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Monitor CoreWeave cluster events and GPU workload status. Use when tracking pod lifecycle events, monitoring GPU utilization, or alerting on inference service health changes. Trigger with phrases like "coreweave events", "coreweave monitoring", "coreweave pod alerts", "coreweave gpu monitoring".
- allowed-tools
- Read, Write, Edit, Bash(kubectl:*)
- compatible-with
- claude-code
03 SKILL.md 正文
CoreWeave Webhooks & Events
Overview
CoreWeave emits Kubernetes-native events and custom status callbacks for GPU workload lifecycle management. Monitor instance readiness, job completion, volume attachment, and node health to build automated scaling, alerting, and recovery pipelines for GPU-accelerated inference and training workloads.
Webhook Registration
const response = await fetch("https://api.coreweave.com/v1/webhooks", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.COREWEAVE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://yourapp.com/webhooks/coreweave",
events: ["instance.ready", "job.completed", "volume.attached", "node.unhealthy"],
secret: process.env.COREWEAVE_WEBHOOK_SECRET,
}),
});
Signature Verification
import crypto from "crypto";
import { Request, Response, NextFunction } from "express";
function verifyCoreWeaveSignature(req: Request, res: Response, next: NextFunction) {
const signature = req.headers["x-coreweave-signature"] as string;
const timestamp = req.headers["x-coreweave-timestamp"] as string;
const payload = `${timestamp}.${req.body.toString()}`;
const expected = crypto.createHmac("sha256", process.env.COREWEAVE_WEBHOOK_SECRET!)
.update(payload).digest("hex");
if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {
return res.status(401).json({ error: "Invalid signature" });
}
next();
}
Event Handler
import express from "express";
const app = express();
app.post("/webhooks/coreweave", express.raw({ type: "application/json" }), verifyCoreWeaveSignature, (req, res) => {
const event = JSON.parse(req.body.toString());
res.status(200).json({ received: true });
switch (event.type) {
case "instance.ready":
registerEndpoint(event.data.instance_id, event.data.gpu_type); break;
case "job.completed":
collectArtifacts(event.data.job_id, event.data.output_path); break;
case "volume.attached":
mountStorage(event.data.volume_id, event.data.node_name); break;
case "node.unhealthy":
drainAndReschedule(event.data.node_id, event.data.reason); break;
}
});
Event Types
| Event | Payload Fields | Use Case |
|---|---|---|
instance.ready |
instance_id, gpu_type, ip_address |
Register inference endpoint |
job.completed |
job_id, output_path, duration_seconds |
Collect training artifacts |
volume.attached |
volume_id, node_name, mount_path |
Confirm storage availability |
node.unhealthy |
node_id, reason, gpu_count |
Drain node and reschedule pods |
instance.terminated |
instance_id, exit_code, gpu_type |
Clean up resources and alert |
Retry & Idempotency
const processed = new Set<string>();
async function handleIdempotent(event: { id: string; type: string; data: any }) {
if (processed.has(event.id)) return;
await routeEvent(event);
processed.add(event.id);
if (processed.size > 10_000) {
const entries = Array.from(processed);
entries.slice(0, entries.length - 10_000).forEach((id) => processed.delete(id));
}
}
Error Handling
| Issue | Cause | Fix |
|---|---|---|
| Signature mismatch | Clock skew between clusters | Validate timestamp within 5-minute window |
Duplicate instance.ready |
Rescheduled pod on same node | Track instance IDs for deduplication |
Stale node.unhealthy |
Transient GPU memory error | Wait for consecutive events before draining |
Missing output_path |
Job failed before writing | Check exit_code before collecting artifacts |
Resources
Next Steps
See coreweave-security-basics.
04 同仓库更多 Skills
zustand-store-creator
Create zustand store creator operations. Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like "zustand store creator", "zustand creator", "zustand".
zero-trust-config-helper
Configure with zero trust config helper operations. Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like "zero trust config helper", "zero helper", "zero".
zapier-integration-helper
Assist with zapier integration helper operations. Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like "zapier integration helper", "zapier helper", "zapier".
yaml-config-validator
Validate yaml config validator operations. Auto-activating skill for DevOps Basics. Triggers on: yaml config validator, yaml config validator Part of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like "yaml config validator", "yaml validator", "yaml".
xvary-stock-research
Thesis-driven equity analysis from public SEC EDGAR and market data; /analyze, /score, /compare workflows with bundled Python tools (Claude Code, Cursor, Codex).
xss-vulnerability-scanner
Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals. Triggers on: xss vulnerability scanner, xss vulnerability scanner Part of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like "xss vulnerability scanner", "xss scanner", "xss".