A Swift client for the Prometheus monitoring system, supporting counters, gauges and histograms. Swift Prometheus implements the Swift Metrics API.
Please see SECURITY.md for details on the security process.
All contributions are most welcome!
If you think of some cool new feature that should be included, please create an issue. Or, if you want to implement it yourself, fork this repo and submit a PR!
If you find a bug or have issues, please create an issue explaining your problems. Please include as much information as possible, so it's easier for us to reproduce (Framework, OS, Swift version, terminal output, etc.)
Benchmarks for swift-prometheus
are in a separate Swift Package in the Benchmarks
subfolder of this repository.
They use the package-benchmark
plugin.
Benchmarks depends on the jemalloc
memory allocation library, which is used by package-benchmark
to capture memory allocation statistics.
An installation guide can be found in the Getting Started article of package-benchmark
.
Afterwards you can run the benchmarks from CLI by going to the Benchmarks
subfolder (e.g. cd Benchmarks
) and invoking:
swift package benchmark
For more information please refer to swift package benchmark --help
or the documentation of package-benchmark
.