mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
[REV] only support client-requesttime avg mapping
This commit is contained in:
parent
fa614a7a57
commit
c57025ab56
@ -193,16 +193,11 @@ func InitMapping() (*MetricMapper, error) {
|
||||
Labels: prometheus.Labels{"service_id": "$1", "port": "$2", "protocol": "$3", "client": "$4"},
|
||||
}
|
||||
m6 := metricMapping{
|
||||
Match: "*.*.*.client-request.unusual.*",
|
||||
Name: "app_client_request_unusual",
|
||||
Labels: prometheus.Labels{"service_id": "$1", "port": "$2", "protocol": "$3", "client": "$4"},
|
||||
}
|
||||
m7 := metricMapping{
|
||||
Match: "*.*.*.client-requesttime.*",
|
||||
Name: "app_client_requesttime",
|
||||
Labels: prometheus.Labels{"service_id": "$1", "port": "$2", "protocol": "$3", "client": "$4"},
|
||||
}
|
||||
n.Mappings = append(n.Mappings, m1, m2, m3, m4, m5, m6, m7)
|
||||
n.Mappings = append(n.Mappings, m1, m2, m3, m4, m5, m6)
|
||||
if n.Defaults.Buckets == nil || len(n.Defaults.Buckets) == 0 {
|
||||
n.Defaults.Buckets = prometheus.DefBuckets
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user