https://github.com/swift-server/swift-prometheus
Prometheus client library for Swift
https://github.com/swift-server/swift-prometheus
Last synced: 6 months ago
JSON representation
Prometheus client library for Swift
- Host: GitHub
- URL: https://github.com/swift-server/swift-prometheus
- Owner: swift-server
- License: apache-2.0
- Created: 2018-11-17T17:29:02.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-11-04T21:41:28.000Z (7 months ago)
- Last Synced: 2025-11-22T03:16:38.359Z (6 months ago)
- Language: Swift
- Homepage: https://swiftpackageindex.com/swift-server/swift-prometheus
- Size: 1.32 MB
- Stars: 174
- Watchers: 16
- Forks: 39
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
- Maintainers: MAINTAINERS.md
Awesome Lists containing this project
README
# Swift Prometheus
[][SSWG-Incubation]
[][Documentation]
[](https://swiftpackageindex.com/swift-server/swift-prometheus)
[](https://swiftpackageindex.com/swift-server/swift-prometheus)
A Swift client library for [Prometheus Monitoring System](https://github.com/prometheus/prometheus).
This can also be used a backend implementation for [Swift Metrics](https://github.com/apple/swift-metrics).
`swift-prometheus` supports creating `Counter`s, `Gauge`s and `Histogram`s, updating metric values, and exposing their values in the Prometheus text format.
## Installation and Usage
Please see the `swift-prometheus` [DocC Documentation][Documentation] for details on installation, usage, implementation, and Prometheus standards compliance.
For general Prometheus guidance, see [Prometheus Monitoring System][prometheus-docs].
## Security
Please see [SECURITY.md](SECURITY.md) for details on the security process.
## Contributing
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) to learn how you can help, or browse our [open issues](https://github.com/swift-server/swift-prometheus/issues) to find a place to start.
## Benchmarks
Benchmarks are located in the [Benchmarks](/Benchmarks/) subfolder and use the [`package-benchmark`](https://github.com/ordo-one/package-benchmark) plugin. See the [Benchmarks Getting Started](https://swiftpackageindex.com/ordo-one/package-benchmark/documentation/benchmark/gettingstarted#Installing-Prerequisites-and-Platform-Support) 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](https://swiftpackageindex.com/ordo-one/package-benchmark/documentation/benchmark).
[Documentation]: https://swiftpackageindex.com/swift-server/swift-prometheus/documentation/prometheus
[prometheus-docs]: https://prometheus.io/docs/introduction/overview/
[SSWG-Incubation]: https://www.swift.org/sswg/incubation-process.html