FLUTTER ECOSYSTEM

prometheus_client

Dart implementation of the Prometheus client library providing metrics.

Latest version
1.0.0+1
30-day downloads
1.3K
Likes
27
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

The prometheus_client package is a Dart implementation of the Prometheus monitoring client library, enabling the collection and exposure of application metrics such as counters, gauges, and histograms. It allows developers to instrument their Flutter and Dart applications to monitor performance, track usage patterns, and support observability in production environments. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it suitable for cross-platform monitoring. Metrics can be exposed via an HTTP endpoint for integration with Prometheus servers.

Use cases
  • Monitoring app performance
  • Tracking user activity
  • Exposing metrics for Prometheus scraping
  • Real-time system health checks
  • Debugging application bottlenecks
Key features
  • Supports counters, gauges, and histograms
  • Cross-platform compatibility
  • HTTP endpoint for metric exposure
  • Easy integration with Prometheus
  • Thread-safe metric updates
Suitable for
  • Backend services in Flutter apps
  • Full-stack applications with observability needs
  • DevOps teams using Prometheus
  • Performance-critical applications
Considerations
  • Requires setup of Prometheus server for full utility
  • Not intended for direct user-facing metrics
  • May increase memory usage with high-frequency metrics
  • Limited documentation compared to other libraries
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add prometheus_client

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects

No data available yet.