{"repo":"apple/swift-metrics","free":true,"listed":false,"github":"https://github.com/apple/swift-metrics","clone":"git clone https://github.com/apple/swift-metrics.git","description":"Metrics API for Swift","language":"Swift","stars":793,"topics":["metrics","swift-server"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"SwiftMetrics A Metrics API package for Swift. Almost all production server software needs to emit metrics information for observability. Because it's unlikely that all parties can agree on one specific metrics backend implementation, this API is designed to establish a standard that can be implemented by various metrics libraries which then post the metrics data to backends like Prometheus, Graphite, publish over statsd, write to disk, etc. This is the beginning of a community-driven open-source project actively seeking contributions, be it code, documentation, or ideas. Apart from contributing to SwiftMetrics itself, we need metrics compatible libraries which send the metrics over to backend such as the ones mentioned above. What SwiftMetrics provides today is covered in the API docs, but it will continue to evolve with community input. Getting started If you have a server-side Swift application, or maybe a cross-platform (e.g. Linux, macOS) application or library, and you would like to emit metrics, targeting this metrics API package is a great idea. Below you'll find all you need to know to get started. Adding the dependency To add a dependency on the metrics API package, you need to declare it in your Package.swift : and to your application/library target, add \"Metrics\" to your dependencies: Emitting metrics information Correct metrics usage pattern Metrics objects should be created once , with pre-defined labels and dimensions known at initialization time, and reused for","default_branch":null,"files":null,"tree":[],"storefront":"/r/apple","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apple/swift-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}