neoprom is a modern TypeScript-first client library for Prometheus, inspired by prom-client.
(heavy work-in-progress!)
| prom-client | @gu5/neoprom | |
|---|---|---|
| Fully tested | ✅ | ❌ |
| TypeScript-first1 | ❌ | ✅ |
| Decorators/Wrappers2 | ❌ | ✅ |
| Standard runtime metrics | ✅ | ⏳ |
| Worker/Cluster Support | ✅ | ❌ |
| Push Gateway | ✅ | ✅ |
| Exemplars | ✅ | ❌ |
| Metric Types | ||
| Counter | ✅ | ✅ |
| Gauge | ✅ | ✅ |
| Histogram | ✅ | ✅ |
| Summary | ✅ | ❌ |
| Info | ❌ | ✅ |
| StateSet | ❌ | ✅ |
| GaugeHistogram | ❌ | ❌ |
- Docs
- Add TSDoc comments for everything
- Standalone documentation site with more details (?)
- Integration testing with NixOS
- Metric aggregation
- sum, average etc like how prom-client does it
- 'preserve' format that outputs multiple observations per metric (OpenMetrics-only)
- See comparison chart above
- Compare naming and data model to prometheus docs, consider aliases, etc
- ...