Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(engine, api): metrics through REST API #5089

Merged
merged 2 commits into from
Apr 1, 2020

Conversation

fsamin
Copy link
Member

@fsamin fsamin commented Mar 30, 2020

usage:

curl  http://localhost:8081/mon/metrics/detail/

returns the list of all metrics as a JSON array

curl -vv http://localhost:8081/mon/metrics/detail/cds/nb_users

Returns the detail of a metric.
Here the metric is named cds/nb_users

curl "http://localhost:8081/mon/metrics/detail/cds/queue?range=all&status=building"

Returns the detail of a tagged metric

You can add the query parameter threshold=x
to raised a 509 HTTP Error if the threshold is reached of exceeded

Signed-off-by: francois samin francois.samin@corp.ovh.com

```
curl  http://localhost:8081/mon/metrics/detail/
```
returns the list of all metrics as a JSON array

```
curl -vv http://localhost:8081/mon/metrics/detail/cds/nb_users
```
Returns the detail of a metric.
Here the metric is named `cds/nb_users`

```
curl "http://localhost:8081/mon/metrics/detail/cds/queue?range=all&status=building"
```
Returns the detail of a tagged metric

You can add the query parameter `threshold=x`
to raised a 509 HTTP Error if the threshold is reached of exceeded

Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
@ovh ovh deleted a comment from ovh-cds Mar 30, 2020
@ovh ovh deleted a comment from ovh-cds Mar 30, 2020
@ovh ovh deleted a comment from ovh-cds Mar 30, 2020
@ovh ovh deleted a comment from ovh-cds Mar 30, 2020
@richardlt richardlt merged commit e7198f8 into master Apr 1, 2020
@fsamin fsamin deleted the feat/engine/http_metrics branch April 6, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants