Waiting for metrics...
Setup Metrics for your service
Integrate Logdash with your preferred SDK. Your dashboard will update automatically when you send metrics.
1. Install the Logdash SDK
npm install @logdash/js-sdk 2. Send metrics to your service
import { createLogDash } from '@logdash/js-sdk';
const { metrics } = createLogDash({
apiKey: "mcxf48ehH7nMhgdGCyv0I4GYsz0oev96"
});
// to set absolute value
metrics.set('users', 0);
// or increment / decrement by
metrics.mutate('users', 1); 3. Claim your service
Waiting for metrics...