You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Get all system metrics
curl -H "Authorization: Bearer your-secret-here" http://localhost:42000/api/metrics
# Get specific metrics
curl -H "Authorization: Bearer your-secret-here" http://localhost:42000/api/metrics/cpu
curl -H "Authorization: Bearer your-secret-here" http://localhost:42000/api/metrics/memory
Using PowerShell
$headers=@{
Authorization="Bearer your-secret-here"
}
# Get all metricsInvoke-RestMethod-Uri "http://localhost:42000/api/metrics"-Headers $headers# Get specific metricsInvoke-RestMethod-Uri "http://localhost:42000/api/metrics/cpu"-Headers $headers