Skip to content

swift-server/swift-prometheus

Swift Prometheus

sswg:sandbox Documentation

A Swift client library for Prometheus Monitoring System.

swift-prometheus supports creating Counters, Gauges and Histograms, updating metric values, and exposing their values in the Prometheus text format.

Installation and Usage

Please refer to the Documentation for installation, usage instructions, and implementation details including Prometheus standards compliance.

For general Prometheus guidance, see Prometheus Monitoring System.

Security

Please see SECURITY.md for details on the security process.

Contributing

We welcome all contributions to swift-prometheus! For feature requests or bug reports, please create an issue with detailed information including Swift version, platform, and reproduction steps. To contribute code, fork this repo and submit a pull request with tests and documentation updates.

Benchmarks

Benchmarks are located in the Benchmarks subfolder and use the package-benchmark plugin. See the Benchmarks Getting Started guide for installation instructions. Run benchmarks by navigating to Benchmarks and executing:

swift package benchmark

For more information please refer to swift package benchmark --help or the package-benchmark Documentation.