Monitoring

Monitor performance and track metrics

Monitoring Overview

DarkAura provides comprehensive monitoring tools to track your application's health, performance, and usage in real-time.

Available Metrics

CPU Usage%
Memory Usage%
Disk I/OMB/s
Network TrafficMB/s
Request Countreq/s
Response Timems
Error Rate%
Active Connectionscount

Query Metrics

const metrics = await client.metrics.query({
  serverId: 'srv_abc123',
  metric: 'cpu_usage',
  period: '1h',
  interval: '5m'
})

console.log(metrics.datapoints)

Set Up Alerts

await client.alerts.create({
  name: 'High CPU Alert',
  serverId: 'srv_abc123',
  condition: {
    metric: 'cpu_usage',
    operator: 'gt',
    threshold: 80,
    duration: '5m'
  },
  notify: {
    email: ['admin@example.com'],
    slack: '#ops-alerts'
  }
})

Logging

Access application logs through the dashboard or API.

const logs = await client.logs.query({
  serverId: 'srv_abc123',
  level: 'error',
  since: '1h',
  limit: 100
})

Third-Party Integrations

Export metrics to your preferred monitoring platform:

DatadogNew RelicGrafanaPrometheusCloudWatch