-
Notifications
You must be signed in to change notification settings - Fork 994
/
app-memcached.yml
162 lines (161 loc) · 5.54 KB
/
app-memcached.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring
category: cache
# The monitoring type eg: linux windows tomcat mysql aws...
app: memcached
# monitoring i18n name
name:
zh-CN: Memcached
en-US: Memcached
# The description and help of this monitoring type
help:
zh-CN: HertzBeat 支持 Memcached 服务监控,通过(stats、stats settings、stats sizes)命令对(服务器进程ID、服务器已运行秒数、版本、当前线程数、item的大小、item的数量、当前存储占用的字节数)等指标进行监测。
en-US: HertzBeat supports Memcached service monitoring by using commands such as stats, stats settings, and stats sizes to monitor indicators such as server process ID, server running seconds, version, current number of threads, item size, number of items, and current byte storage usage.
zh-TW: HertzBeat支持Memcached服務監控,通過(stats、stats settings、stats sizes)命令對(服務器行程ID、服務器已運行秒數、版本、當前線程數、item的大小、item的數量、當前存儲佔用的位元組數)等名額進行監測。
# Input params define for monitoring(render web ui by the definition)
params:
# field-param field key
- field: host
# name-param field display i18n name
name:
zh-CN: Memcached服务的Host
en-US: Host of Memcached service
# type-param field type(most mapping the html input type)
type: host
# required-true or false
required: true
# field-param field key
- field: port
# name-param field display i18n name
name:
zh-CN: 端口
en-US: Port
# type-param field type(most mapping the html input type)
type: number
# when type is number, range is required
range: '[0,65535]'
# required-true or false
required: true
# default value
defaultValue: 11211
# collect metrics config list
metrics:
# metrics - summary
- name: server_info
i18n:
zh-CN: 系统信息
en-US: Server Info
# metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel
# priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue
priority: 0
# field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field
fields:
- field: responseTime
type: 0
unit: ms
i18n:
zh-CN: 响应时间
en-US: Response Time
- field: pid
type: 1
i18n:
zh-CN: 服务器进程ID
en-US: Pid
- field: uptime
type: 0
unit: s
i18n:
zh-CN: 已运行秒数
en-US: Uptime
- field: version
type: 1
i18n:
zh-CN: 版本
en-US: Version
- field: curr_connections
type: 0
i18n:
zh-CN: 当前连接数量
en-US: Curr Connections
- field: auth_errors
type: 0
i18n:
zh-CN: 认证失败数目
en-US: Auth Errors
- field: threads
type: 0
i18n:
zh-CN: 当前线程数
en-US: Threads
- field: item_size
type: 0
unit: byte
i18n:
zh-CN: Item 大小
en-US: Item Size
- field: item_count
type: 0
i18n:
zh-CN: Item 数量
en-US: Item Count
- field: curr_items
type: 0
i18n:
zh-CN: 当前存储的数据总数
en-US: Curr Items
- field: total_items
type: 0
i18n:
zh-CN: 启动以来存储的数据总数
en-US: Total Items
- field: bytes
type: 0
unit: byte
i18n:
zh-CN: 当前存储占用的字节数
en-US: Bytes
- field: cmd_get
type: 0
i18n:
zh-CN: Get命令请求次数
en-US: Cmd Get
- field: cmd_set
type: 0
i18n:
zh-CN: Set命令请求次数
en-US: Cmd Set
- field: cmd_flush
type: 0
i18n:
zh-CN: Flush命令请求次数
en-US: Cmd Flush
- field: get_misses
type: 0
i18n:
zh-CN: Get命令未命中次数
en-US: Get Misses
- field: delete_misses
type: 0
i18n:
zh-CN: Delete命令未命中次数
en-US: Delete Misses
# the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk
protocol: memcached
# Specific collection configuration when protocol is telnet protocol
memcached:
# telnet host
host: ^_^host^_^
port: ^_^port^_^