What is disk space monitoring in SaaS
Monitoring disk space helps keep your SaaS running smoothly.
If disk space runs out, your service might stop storing data or crash.
For example, if your production database server runs out of space, you might lose user uploads.
Using Operational for disk space monitoring
Operational is a lightweight event tracking tool for any application.
It lets you send events when disk space crosses thresholds and view them in a dashboard.
Setting up Operational
- Go to https://app.operational.co and sign up for an account.
- Create a new project in the dashboard.
- Navigate to project settings and copy your API key.
- Install the Operational SDK in your application.
Tracking disk space with code
import Operational from "@operational.co/sdk"
const ops = new Operational("API_KEY")
const payload = {
name: "Disk space low",
avatar: "💾",
content: "Server Alpha is below 10% disk space"
}
await ops.events.ingest(payload)
This code checks your disk usage and sends an event to Operational when space gets low.
Conclusion
Operational makes it easy to monitor disk space in your SaaS and get alerts before problems arise.
Learn more at https://operational.co and try the playground at https://operational.co/playground