forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.go
39 lines (37 loc) · 819 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
30
31
32
33
34
35
36
37
38
39
package stats
import (
s "github.com/elastic/beats/libbeat/common/schema"
c "github.com/elastic/beats/libbeat/common/schema/mapstrstr"
)
var (
schema = s.Schema{
"pid": c.Int("pid"),
"uptime": s.Object{
"sec": c.Int("uptime"),
},
"threads": c.Int("threads"),
"connections": s.Object{
"current": c.Int("curr_connections"),
"total": c.Int("total_connections"),
},
"get": s.Object{
"hits": c.Int("get_hits"),
"misses": c.Int("get_misses"),
},
"cmd": s.Object{
"get": c.Int("cmd_get"),
"set": c.Int("cmd_set"),
},
"read": s.Object{
"bytes": c.Int("bytes_read"),
},
"written": s.Object{
"bytes": c.Int("bytes_written"),
},
"items": s.Object{
"current": c.Int("curr_items"),
"total": c.Int("total_items"),
},
"evictions": c.Int("evictions"),
}
)