Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 [email protected]

```
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 <[email protected]>
@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.

5 participants