swift-prometheus
swift-prometheus copied to clipboard
Prometheus client library for Swift
# Motivation Adding benchmark tests in order to aid development and avoid performance regressions. Benchmark is added in the same fashion as for [swift-nio](https://github.com/apple/swift-nio/pull/2536) and [swift-certifcates](https://github.com/apple/swift-certificates/pull/125). # Modifications Benchmarks are...
In #92, we added a `Histogram` that is generic over the observed type. This means that each `Histogram` was also carrying a generic argument. To make it easier to deal...
If one creates a Gauge or a Counter with dimensions, an exported value actually contains 2 metrics, this when visualized in Grafana will also result in 2 graphs, one which...
When I was using the Summary and Histogram type I noticed, that if I record a value for a metric with name and dimensions, the value is also recorded for...
Prometheus has a new experimental feature called Native Histograms. Native Histograms currently require export via deprecated protobufs, which is a bit weird. More info: - [PromCon EU 2022: Native Histograms...
### Steps to reproduce Prometheus makes a few too many assumptions about my metrics system factory. I use the multiplex factory that comes from Apple and bootstrap prometheus with it,...
### Feature Request When reporting Prometheus metrics, it's sometimes useful to always append a certain set of dimensions to _every_ published metric (e.g. nodeId, appName, etc.). #### Motivation Behind Feature...
I do not want to use the default endpoint from Vapor metrics for pulling. How to tell Prometheus to use a custom one? for instance `localhost/api/data/metric`
Fixes #80 #77 ### Checklist - [x] The provided tests still run. - [x] I've created new tests where needed. - [x] I've updated the documentation if necessary. Fixes an...
### Checklist - [x] The provided tests still run. - [ ] I've created new tests where needed. - [ ] I've updated the documentation if necessary. I've not updated...