Listening 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. Create Logdash instance
import { createLogDash } from '@logdash/js-sdk';
const { metrics } = createLogDash({
apiKey: "mxXrEIecgIgqm8eRynBOsf68Ur7GgQlM"
});
// to set absolute value
metrics.set('users', 0);
// or increment / decrement by
metrics.mutate('users', 1);
3. Capture metrics
Listening for metrics...