Listening for metrics...
Setup Metrics for your project
Integrate Logdash with your preferred SDK. Your dashboard will update automatically when you send metrics.
1. Install the Logdash SDK
- NodeJS
- Python
- Java
- PHP
- Ruby
- C#/DotNet
- Other
npm install @logdash/js-sdk
2. Create Logdash instance
import { createLogDash } from '@logdash/js-sdk';
const { metrics } = createLogDash({
apiKey: "mzfsJJPaY2hgjqv0ayoYboYVRp922fAg"
});
// set absolute value
metrics.set('users', 0);
// or modify existing one
metrics.mutate('users', 1);
3. Capture metrics
Listening for metrics...