You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fastbreaker.prometheus](https://github.com/bluekiri/fastbreaker/prometheus) simplifies regitering metrics generated from [fastbreaker](https://github.com/bluekiri/fastbreaker) into [prometheus](https://prometheus.io/).
7
+
8
+
Installation
9
+
------------
10
+
11
+
```
12
+
go get github.com/bluekiri/fastbreaker/prometheus
13
+
```
14
+
15
+
Usage
16
+
-----
17
+
18
+
The function `prometheus.RegisterMetricsToDefaultRegisterer` registers the `fastbreaker.FastBreaker` metrics with the default Registerer.
19
+
20
+
The function `prometheus.RegisterMetrics` registers the `fastbreaker.FastBreaker` metrics with the provided Registerer.
21
+
22
+
The function `RegisterMetricsWithFactory` registers the `fastbreaker.FastBreaker` metrics with the provided `promauto.Factory`.
23
+
24
+
All three functions return an error if the circuit breaker name is not a valid UTF-8 string.
0 commit comments