-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.go
29 lines (27 loc) · 916 Bytes
/
data.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
package pool
import (
s "github.com/elastic/beats/libbeat/common/schema"
c "github.com/elastic/beats/libbeat/common/schema/mapstriface"
)
var (
schema = s.Schema{
"name": c.Str("pool"),
"process_manager": c.Str("process manager"),
"slow_requests": c.Int("slow requests"),
"start_time": c.Int("start time"),
"start_since": c.Int("start since"),
"connections": s.Object{
"accepted": c.Int("accepted conn"),
"listen_queue_len": c.Int("listen queue len"),
"max_listen_queue": c.Int("max listen queue"),
"queued": c.Int("listen queue"),
},
"processes": s.Object{
"active": c.Int("active processes"),
"idle": c.Int("idle processes"),
"max_active": c.Int("max active processes"),
"max_children_reached": c.Int("max children reached"),
"total": c.Int("total processes"),
},
}
)