coder / coder-logstream-kube

Stream Kubernetes Pod events to the Coder startup logs
GNU Affero General Public License v3.0
13 stars 4 forks source link

Streaming other events #13

Closed dcarrion87 closed 7 months ago

dcarrion87 commented 11 months ago

We're using this and it works great!

We'd like to extend it to capture events from spot instance interruptions on underlying hosts. We already have another service that determines that.

Just wondering if you think this would be possible how I would need to format the event to coder to capture it and associate it with that users workspace.

dcarrion87 commented 11 months ago

Nevermind just realised we can patch into https://harrison-coder.harrison.ts.net/api/v2/workspaceagents/me/startup-logs with the workspace agent token. Which looks like is exactly what the coder logstream stuff is doing.

sreya commented 7 months ago

Closing since it seems like you have a solution already :slightly_smiling_face: