-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmetrics.go
43 lines (39 loc) · 1.13 KB
/
metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package promlib
var (
PostgreSQLQueryTime = &HistogramOpts{
MetaOpts: MetaOpts{
Name: "query_time",
Subsystem: "postgresql",
Help: "PostgreSQL queries response time",
},
Labels: []string{"query"},
Buckets: []float64{.002, .005, .01, .015, .025, .05, .1, .25, .5, 1, 2, 10},
}
MySQLQueryTime = &HistogramOpts{
MetaOpts: MetaOpts{
Name: "query_time",
Subsystem: "mysql",
Help: "MySQL queries response time",
},
Labels: []string{"query"},
Buckets: []float64{.002, .005, .01, .015, .025, .05, .1, .25, .5, 1, 2, 10},
}
TarantoolOpTime = &HistogramOpts{
MetaOpts: MetaOpts{
Name: "operation_time",
Subsystem: "tarantool",
Help: "Tarantool operations response time",
},
Labels: []string{"collection", "operation"},
Buckets: []float64{.002, .005, .01, .015, .025, .05, .1, .25, .5, 1, 2, 10},
}
RedisOpTime = &HistogramOpts{
MetaOpts: MetaOpts{
Name: "operation_time",
Subsystem: "redis",
Help: "Redis operations response time",
},
Labels: []string{"operation"},
Buckets: []float64{.002, .005, .01, .015, .025, .05, .1, .25, .5, 1, 2, 10},
}
)