[release] v0.12.0-unstable35

This commit is contained in:
Yann Stepienik 2023-11-02 23:22:08 +00:00
parent 733745944a
commit 19d69d6dd2
2 changed files with 9 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.12.0-unstable34",
"version": "0.12.0-unstable35",
"description": "",
"main": "test-server.js",
"bugs": {

View file

@ -46,18 +46,18 @@ func PushRequestMetrics(route utils.ProxyRouteConfig, statusCode int, TimeStarte
PushSetMetric("proxy.all.time", int(responseTime.Milliseconds()), DataDef{
Max: 0,
Period: time.Second * 30,
Label: "Global Response Time",
AggloType: "avg",
SetOperation: "max",
Label: "Global Request Time",
AggloType: "sum",
SetOperation: "sum",
Unit: "ms",
})
PushSetMetric("proxy.route.time."+route.Name, int(responseTime.Milliseconds()), DataDef{
Max: 0,
Period: time.Second * 30,
Label: "Response Time " + route.Name,
AggloType: "avg",
SetOperation: "max",
Label: "Response Request " + route.Name,
AggloType: "sum",
SetOperation: "sum",
Unit: "ms",
})
@ -66,6 +66,7 @@ func PushRequestMetrics(route utils.ProxyRouteConfig, statusCode int, TimeStarte
Period: time.Second * 30,
Label: "Global Transfered Bytes",
AggloType: "sum",
SetOperation: "sum",
Unit: "B",
})
@ -74,6 +75,7 @@ func PushRequestMetrics(route utils.ProxyRouteConfig, statusCode int, TimeStarte
Period: time.Second * 30,
Label: "Transfered Bytes " + route.Name,
AggloType: "sum",
SetOperation: "sum",
Unit: "B",
})
}