-
Notifications
You must be signed in to change notification settings - Fork 34
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
Design Metrics (HTTP) server for serving metrics data for Grafana dashboard #1512
Comments
Grafana requires the following from HTTP service:
Notes/Questions
Next Steps
|
See below for updated design
|
There are a number of http multiplexers compatible with `net/http'. We have a very small number of APIs. Per https://www.alexedwards.net/blog/which-go-router-should-i-use, plan to use default multiplexer. |
Here is some partial sample output for % curl localhost:8080/summarymetrics -d '{"application": "default/backend"}'
{
"0": {
"NumUsers": 17,
"MetricSummaries": {
"sample_metric": {
"SummaryOverTransactions": {
"Count": 203,
"Mean": 47.82011996059115,
"StdDev": 28.835028215240904,
"Min": 0.051382,
"Max": 99.827381
},
"SummaryOverUsers": {
"Count": 17,
"Mean": 571.0284912941178,
"StdDev": 1456.1383944589172,
"Min": 15.18434,
"Max": 6314.74141
}
}
}
},
"1": {
"NumUsers": 24,
"MetricSummaries": {
"sample_metric": {
"SummaryOverTransactions": {
"Count": 86,
"Mean": 51.59040327906978,
"StdDev": 29.819517493656722,
"Min": 1.282591,
"Max": 99.915949
},
"SummaryOverUsers": {
"Count": 24,
"Mean": 184.86561175000006,
"StdDev": 110.78605365552966,
"Min": 23.409473,
"Max": 433.398395
}
}
}
}
} |
Grafana dashboard requests data from Iter8 (HTTP) Metrics Service. APIs1. GET /metrics?application=app-nameResult (Content-Type: application/json):{
"metric1": {
"histogramsOverTransactions": [
{"version": v, "label": "a-b", "value": v},
...,
],
"histogramsOverUsers": [
{"version": v, "label": "a-b", "value": v},
...,
],
"summaryOverTransactions": [
{"version": v, "count": n, "mean" mean, "stddev"": stddev, "min": min, "max": max},
...
],
"summaryOverUsers": [
{"version": v, "count": n, "mean" mean, "stddev"": stddev, "min": min, "max": max},
...,
],
},
"metric2": {},
...
} Response codes:
Implementation:
Comments |
Implemented in #1493 |
The Grafana dashboard, currently being developed to display metrics data for A/B/n, needs a way to obtain metrics data.
Consider creating a separate service that is dedicated to serving metrics for Grafana dashboard.
Under the covers, this server should invoke the
GetMetrics()
function (see here).Part of epic #1501
The text was updated successfully, but these errors were encountered: