1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/docs/api/internal-backstage-api.md

25 lines
931 B
Markdown
Raw Normal View History

---
id: internal
title: /internal-backstage/prometheus
---
# Internal Backstage API
`GET http://unleash.host.com/internal-backstage/prometheus`
2018-11-22 11:20:28 +01:00
Unleash uses prometheus internally to collect metrics. These are available on the given url if the `serverMetrics` option is enabled (default=true).
2018-11-22 11:20:28 +01:00
[Read more about Prometheus](https://prometheus.io/)
## Annotations
2018-11-22 11:20:28 +01:00
Unleash will automatically count all updates for all toggles under the metric name `feature_toggle_update_total`, and the toggle name is will be set as a label value. This information can be used to create annotations in grafana for everytime a feature toggle is changed.
You can use this query in grafana to achieve this:
```
delta(feature_toggle_update_total{toggle="Demo"}[1m]) != bool 0?
```
Another useful counter is the `feature_toggle_usage_total` which will give you the numbers for how many time a feature toggle has been evaluated to `active` or not.