[release] v0.12.0-unstable35
This commit is contained in:
parent
733745944a
commit
19d69d6dd2
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cosmos-server",
|
"name": "cosmos-server",
|
||||||
"version": "0.12.0-unstable34",
|
"version": "0.12.0-unstable35",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "test-server.js",
|
"main": "test-server.js",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
|
@ -46,18 +46,18 @@ func PushRequestMetrics(route utils.ProxyRouteConfig, statusCode int, TimeStarte
|
||||||
PushSetMetric("proxy.all.time", int(responseTime.Milliseconds()), DataDef{
|
PushSetMetric("proxy.all.time", int(responseTime.Milliseconds()), DataDef{
|
||||||
Max: 0,
|
Max: 0,
|
||||||
Period: time.Second * 30,
|
Period: time.Second * 30,
|
||||||
Label: "Global Response Time",
|
Label: "Global Request Time",
|
||||||
AggloType: "avg",
|
AggloType: "sum",
|
||||||
SetOperation: "max",
|
SetOperation: "sum",
|
||||||
Unit: "ms",
|
Unit: "ms",
|
||||||
})
|
})
|
||||||
|
|
||||||
PushSetMetric("proxy.route.time."+route.Name, int(responseTime.Milliseconds()), DataDef{
|
PushSetMetric("proxy.route.time."+route.Name, int(responseTime.Milliseconds()), DataDef{
|
||||||
Max: 0,
|
Max: 0,
|
||||||
Period: time.Second * 30,
|
Period: time.Second * 30,
|
||||||
Label: "Response Time " + route.Name,
|
Label: "Response Request " + route.Name,
|
||||||
AggloType: "avg",
|
AggloType: "sum",
|
||||||
SetOperation: "max",
|
SetOperation: "sum",
|
||||||
Unit: "ms",
|
Unit: "ms",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ func PushRequestMetrics(route utils.ProxyRouteConfig, statusCode int, TimeStarte
|
||||||
Period: time.Second * 30,
|
Period: time.Second * 30,
|
||||||
Label: "Global Transfered Bytes",
|
Label: "Global Transfered Bytes",
|
||||||
AggloType: "sum",
|
AggloType: "sum",
|
||||||
|
SetOperation: "sum",
|
||||||
Unit: "B",
|
Unit: "B",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -74,6 +75,7 @@ func PushRequestMetrics(route utils.ProxyRouteConfig, statusCode int, TimeStarte
|
||||||
Period: time.Second * 30,
|
Period: time.Second * 30,
|
||||||
Label: "Transfered Bytes " + route.Name,
|
Label: "Transfered Bytes " + route.Name,
|
||||||
AggloType: "sum",
|
AggloType: "sum",
|
||||||
|
SetOperation: "sum",
|
||||||
Unit: "B",
|
Unit: "B",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue