def _init_metrics(self): self.metrics = { "netname": Metric(MetricType.String, key="shared net name"), "first_ip": Metric(MetricType.String, key="first ip"), "last_ip": Metric(MetricType.String, key="last ip"), "pool_size": Metric(MetricType.Integer, key="max"), "active_leases": Metric(MetricType.Integer, key="cur"), "pool_usage": Metric(MetricType.Float, key="percent"), "expired_leases": Metric(MetricType.Integer, key="touch"), "failover_pool_size": Metric(MetricType.Integer, key="bu"), "failover_pool_percent": Metric(MetricType.Float, key="bu perc"), "discovery": Metric(MetricType.Discovery, self._discovery), }
def _init_metrics(self): self.metrics = { "connections_active": Metric("active connections", MetricType.Integer, 0, ":"), "connections_reading": Metric("reading", MetricType.Integer, 1, " ", self._filter_data, linenumber=1), "connections_writing": Metric("writing", MetricType.Integer, 3, " ", self._filter_data, linenumber=1), "connections_waiting": Metric("waiting", MetricType.Integer, 5, " ", self._filter_data, linenumber=1), "accepts": Metric("accepts", MetricType.Integer, 0, " ", self._filter_data, linenumber=2), "handled": Metric("handled", MetricType.Integer, 1, " ", self._filter_data, linenumber=2), "requests": Metric("requests", MetricType.Integer, 2, " ", self._filter_data, linenumber=2), }
def _init_metrics(self): self.metrics = { "connections_active": Metric(MetricType.Integer, regex="Active connections: ([0-9]+)"), "connections_reading": Metric(MetricType.Integer, regex="Reading: ([0-9]+)"), "connections_writing": Metric(MetricType.Integer, regex="Writing: ([0-9]+)"), "connections_waiting": Metric(MetricType.Integer, regex="Waiting: ([0-9]+)"), "accepts": Metric(MetricType.Integer, linenumber=2, position=0, separator=" "), "handled": Metric(MetricType.Integer, linenumber=2, position=1, separator=" "), "requests": Metric(MetricType.Integer, linenumber=2, position=2, separator=" "), "ping": Metric(MetricType.Float, regex=UrlConnector.load_time_regex), }
def _init_metrics(self): self.metrics = { "start_time": Metric(MetricType.Float, regex="StartTime ([0-9\.]+)"), "end_time": Metric(MetricType.Float, regex="EndTime ([0-9\.]+)"), "elapsed_time": Metric(MetricType.Float, regex="ElapsedTime ([0-9\.]+)"), "source_files": Metric(MetricType.Integer, regex="SourceFiles ([0-9]+)"), "source_file_size": Metric(MetricType.Integer, regex="SourceFileSize ([0-9]+)"), "mirror_files": Metric(MetricType.Integer, regex="MirrorFiles ([0-9]+)"), "mirror_file_size": Metric(MetricType.Integer, regex="MirrorFileSize ([0-9]+)"), "new_files": Metric(MetricType.Integer, regex="NewFiles ([0-9]+)"), "new_file_size": Metric(MetricType.Integer, regex="NewFileSize ([0-9]+)"), "deleted_files": Metric(MetricType.Integer, regex="DeletedFiles ([0-9]+)"), "deleted_file_size": Metric(MetricType.Integer, regex="DeletedFileSize ([0-9]+)"), "changed_files": Metric(MetricType.Integer, regex="ChangedFiles ([0-9]+)"), "changed_source_size": Metric(MetricType.Integer, regex="ChangedSourceSize ([0-9]+)"), "changed_mirror_size": Metric(MetricType.Integer, regex="ChangedMirrorSize ([0-9]+)"), "increment_files": Metric(MetricType.Integer, regex="IncrementFiles ([0-9]+)"), "increment_file_size": Metric(MetricType.Integer, regex="IncrementFileSize ([0-9]+)"), "total_dest_size_change": Metric(MetricType.Integer, regex="TotalDestinationSizeChange ([0-9]+)"), "errors": Metric(MetricType.Integer, regex="Errors ([0-9]+)"), }
def _init_metrics(self): self.metrics = { "start_time": Metric("StartTime", MetricType.Float, 0, " "), "end_time": Metric("EndTime", MetricType.Float, 1, " "), "elapsed_time": Metric("ElapsedTime", MetricType.Float, 2, " "), "source_files": Metric("SourceFiles", MetricType.Integer, 3, " "), "source_file_size": Metric("SourceFileSize", MetricType.Integer, 4, " "), "mirror_files": Metric("MirrorFiles", MetricType.Integer, 5, " "), "mirror_file_size": Metric("MirrorFileSize", MetricType.Integer, 6, " "), "new_files": Metric("NewFiles", MetricType.Integer, 7, " "), "new_file_size": Metric("NewFileSize", MetricType.Integer, 8, " "), "deleted_files": Metric("DeletedFiles", MetricType.Integer, 9, " "), "deleted_file_size": Metric("DeletedFileSize", MetricType.Integer, 10, " "), "changed_files": Metric("ChangedFiles", MetricType.Integer, 11, " "), "changed_source_size": Metric("ChangedSourceSize", MetricType.Integer, 12, " "), "changed_mirror_size": Metric("ChangedMirrorSize", MetricType.Integer, 13, " "), "increment_files": Metric("IncrementFiles", MetricType.Integer, 14, " "), "increment_file_size": Metric("IncrementFileSize", MetricType.Integer, 15, " "), "total_dest_size_change": Metric("TotalDestinationSizeChange", MetricType.Integer, 16, " "), "errors": Metric("Errors", MetricType.Integer, 17, " "), }
def _init_metrics(self): self.metrics = { "version": Metric(MetricType.String, regex="Version: ([0-9\.]+)"), "uptime_sec": Metric(MetricType.Integer, regex="Uptime_sec: ([0-9]+)"), "memmax_mb": Metric(MetricType.Integer, regex="Memmax_MB: ([0-9]+)"), "maxsock": Metric(MetricType.Integer, regex="Maxsock: ([0-9]+)"), "maxconn": Metric(MetricType.Integer, regex="Maxconn: ([0-9]+)"), "maxpipes": Metric(MetricType.Integer, regex="Maxpipes: ([0-9]+)"), "currconns": Metric(MetricType.Integer, regex="CurrConns: ([0-9]+)"), "currsslconns": Metric(MetricType.Integer, regex="CurrSslConns: ([0-9]+)"), "pipesused": Metric(MetricType.Integer, regex="PipesUsed: ([0-9]+)"), "pipesfree": Metric(MetricType.Integer, regex="PipesFree: ([0-9]+)"), "connrate": Metric(MetricType.Integer, regex="ConnRate: ([0-9]+)"), "sessrate": Metric(MetricType.Integer, regex="SessRate: ([0-9]+)"), "sslrate": Metric(MetricType.Integer, regex="SslRate: ([0-9]+)"), "tasks": Metric(MetricType.Integer, regex="Tasks: ([0-9]+)"), "run_queue": Metric(MetricType.Integer, regex="Run_queue: ([0-9]+)"), "idle_pct": Metric(MetricType.Integer, regex="Idle_pct: ([0-9]+)"), "node": Metric(MetricType.String, regex="node: (.+)"), "qcur": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=2), "qmax": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=3), "scur": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=4), "smax": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=5), "slim": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=6), "stot": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=7), "bin": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=8), "bout": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=9), "dreq": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=10), "dresp": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=11), "ereq": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=12), "econ": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=12), "eresp": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=14), "wretr": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=15), "wredis": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=16), "status": Metric(MetricType.String, callback=self._filter_data, separator=",", position=17), "weight": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=18), "act": Metric(MetricType.String, callback=self._filter_data, separator=",", position=19), "bck": Metric(MetricType.String, callback=self._filter_data, separator=",", position=20), "chkfail": Metric(MetricType.String, callback=self._filter_data, separator=",", position=21), "chkdown": Metric(MetricType.String, callback=self._filter_data, separator=",", position=22), "lastchg": Metric(MetricType.String, callback=self._filter_data, separator=",", position=23), "downtime": Metric(MetricType.String, callback=self._filter_data, separator=",", position=24), "qlimit": Metric(MetricType.String, callback=self._filter_data, separator=",", position=25), "pid": Metric(MetricType.String, callback=self._filter_data, separator=",", position=26), "iid": Metric(MetricType.String, callback=self._filter_data, separator=",", position=27), "sid": Metric(MetricType.String, callback=self._filter_data, separator=",", position=28), "throttle": Metric(MetricType.String, callback=self._filter_data, separator=",", position=29), "lbtot": Metric(MetricType.Integer, callback=self._filter_data, separator=",", position=30), "tracked": Metric(MetricType.String, callback=self._filter_data, separator=",", position=31), "type": Metric(MetricType.String, callback=self._filter_data, separator=",", position=32), "rate": Metric(MetricType.String, callback=self._filter_data, separator=",", position=33), "rate_lim": Metric(MetricType.String, callback=self._filter_data, separator=",", position=34), "rate_max": Metric(MetricType.String, callback=self._filter_data, separator=",", position=35), "check_status": Metric(MetricType.String, callback=self._filter_data, separator=",", position=36), "check_code": Metric(MetricType.String, callback=self._filter_data, separator=",", position=37), "check_duration": Metric(MetricType.String, callback=self._filter_data, separator=",", position=38), "hrsp_1xx": Metric(MetricType.String, callback=self._filter_data, separator=",", position=39), "hrsp_2xx": Metric(MetricType.String, callback=self._filter_data, separator=",", position=40), "hrsp_3xx": Metric(MetricType.String, callback=self._filter_data, separator=",", position=41), "hrsp_4xx": Metric(MetricType.String, callback=self._filter_data, separator=",", position=42), "hrsp_5xx": Metric(MetricType.String, callback=self._filter_data, separator=",", position=43), "hrsp_other": Metric(MetricType.String, callback=self._filter_data, separator=",", position=44), "hanafail": Metric(MetricType.String, callback=self._filter_data, separator=",", position=45), "req_rate": Metric(MetricType.String, callback=self._filter_data, separator=",", position=46), "req_rate_max": Metric(MetricType.String, callback=self._filter_data, separator=",", position=47), "req_tot": Metric(MetricType.String, callback=self._filter_data, separator=",", position=48), "cli_abrt": Metric(MetricType.String, callback=self._filter_data, separator=",", position=49), "srv_abrt": Metric(MetricType.String, callback=self._filter_data, separator=",", position=50), "discovery": Metric(MetricType.Discovery, self._discovery), }
def _init_metrics(self): self.metrics = { "uptime": Metric("uptime", MetricType.Integer, 0), "connections": Metric("connections", MetricType.Integer, 1), "maxed_out": Metric("maxed_out", MetricType.Integer, 2), "command_search": Metric("command_search", MetricType.Integer, 3), "command_excerpt": Metric("command_excerpt", MetricType.Integer, 4), "command_update": Metric("command_update", MetricType.Integer, 5), "command_keywords": Metric("command_keywords", MetricType.Integer, 6), "command_persist": Metric("command_persist", MetricType.Integer, 7), "command_status": Metric("command_status", MetricType.Integer, 8), "command_flushattrs": Metric("command_flushattrs", MetricType.Integer, 9), "agent_connect": Metric("agent_connect", MetricType.Integer, 10), "agent_retry": Metric("agent_retry", MetricType.Integer, 11), "queries": Metric("queries", MetricType.Integer, 12), "dist_queries": Metric("dist_queries", MetricType.Integer, 13), "query_wall": Metric("query_wall", MetricType.Float, 14), "query_cpu": Metric("query_cpu", MetricType.Float, 15), "dist_wall": Metric("dist_wall", MetricType.Float, 16), "dist_local": Metric("dist_local", MetricType.Float, 17), "dist_wait": Metric("dist_wait", MetricType.Float, 18), "query_reads": Metric("query_reads", MetricType.Float, 19), "query_readkb": Metric("query_readkb", MetricType.Float, 20), "query_readtime": Metric("query_readtime", MetricType.Float, 21), "avg_query_wall": Metric("avg_query_wall", MetricType.Float, 22), "avg_query_cpu": Metric("avg_query_cpu", MetricType.Float, 23), "avg_dist_wall": Metric("avg_dist_wall", MetricType.Float, 24), "avg_dist_local": Metric("avg_dist_local", MetricType.Float, 25), "avg_dist_wait": Metric("avg_dist_wait", MetricType.Float, 26), "avg_query_reads": Metric("avg_query_reads", MetricType.Float, 27), "avg_query_readkb": Metric("avg_query_readkb", MetricType.Float, 28), "avg_query_readtime": Metric("avg_query_readtime", MetricType.Float, 29), }
def _init_metrics(self): self.metrics = { "uptime": Metric(MetricType.Integer, key="uptime"), "connections": Metric(MetricType.Integer, key="connections"), "maxed_out": Metric(MetricType.Integer, key="maxed_out"), "command_search": Metric(MetricType.Integer, key="command_search"), "command_excerpt": Metric(MetricType.Integer, key="command_excerpt"), "command_update": Metric(MetricType.Integer, key="command_update"), "command_keywords": Metric(MetricType.Integer, key="command_keywords"), "command_persist": Metric(MetricType.Integer, key="command_persist"), "command_status": Metric(MetricType.Integer, key="command_status"), "command_flushattrs": Metric(MetricType.Integer, key="command_flushattrs"), "agent_connect": Metric(MetricType.Integer, key="agent_connect"), "agent_retry": Metric(MetricType.Integer, key="agent_retry"), "queries": Metric(MetricType.Integer, key="queries"), "dist_queries": Metric(MetricType.Integer, key="dist_queries"), "query_wall": Metric(MetricType.Float, key="query_wall"), "query_cpu": Metric(MetricType.Float, key="query_cpu"), "dist_wall": Metric(MetricType.Float, key="dist_wall"), "dist_local": Metric(MetricType.Float, key="dist_local"), "dist_wait": Metric(MetricType.Float, key="dist_wait"), "query_reads": Metric(MetricType.Float, key="query_reads"), "query_readkb": Metric(MetricType.Float, key="query_readkb"), "query_readtime": Metric(MetricType.Float, key="query_readtime"), "avg_query_wall": Metric(MetricType.Float, key="avg_query_wall"), "avg_query_cpu": Metric(MetricType.Float, key="avg_query_cpu"), "avg_dist_wall": Metric(MetricType.Float, key="avg_dist_wall"), "avg_dist_local": Metric(MetricType.Float, key="avg_dist_local"), "avg_dist_wait": Metric(MetricType.Float, key="avg_dist_wait"), "avg_query_reads": Metric(MetricType.Float, key="avg_query_reads"), "avg_query_readkb": Metric(MetricType.Float, key="avg_query_readkb"), "avg_query_readtime": Metric(MetricType.Float, key="avg_query_readtime"), }
def _init_metrics(self): self.metrics = { "pool": Metric("pool", MetricType.String, 0, ":"), "process_manager": Metric("process manager", MetricType.String, 1, ":"), "start_since": Metric("start since", MetricType.Integer, 3, ":"), "accepted_conn": Metric("accepted conn", MetricType.String, 4, ":"), "listen_queue": Metric("listen queue", MetricType.Integer, 5, ":"), "listen_queue_max": Metric("max listen queue", MetricType.Integer, 6, ":"), "listen_queue_len": Metric("listen queue len", MetricType.Integer, 7, ":"), "idle_processes": Metric("idle processes", MetricType.Integer, 8, ":"), "active_processes": Metric("active processes", MetricType.Integer, 9, ":"), "total_processes": Metric("total processes", MetricType.Integer, 10, ":"), "active_processes_max": Metric("max active processes", MetricType.Integer, 11, ":"), "max_children_reached": Metric("max children reached", MetricType.Integer, 12, ":"), "slow_requests": Metric("slow requests", MetricType.Integer, 13, ":"), }
def _init_metrics(self): self.metrics = { "access_accepts": Metric(MetricType.Integer, regex="Access accepts:([0-9]+)"), "access_challenges": Metric(MetricType.Integer, regex="Access challenges:([0-9]+)"), "access_rejects": Metric(MetricType.Integer, regex="Access rejects:([0-9]+)"), "access_requests": Metric(MetricType.Integer, regex="Access requests:([0-9]+)"), "access_requests_dropped_": Metric(MetricType.Integer, regex="Dropped access requests:([0-9]+)"), "access_requests_duplicate": Metric(MetricType.Integer, regex="Duplicate access requests:([0-9]+)"), "access_requests_malformed": Metric(MetricType.Integer, regex="Malformed access requests:([0-9]+)"), "accounting_requests": Metric(MetricType.Integer, regex="Accounting requests:([0-9]+)"), "accounting_responses": Metric(MetricType.Integer, regex="Accounting responses:([0-9]+)"), "accounting_requests_dropped": Metric(MetricType.Integer, regex="Dropped accounting requests:([0-9]+)"), "accounting_requests_duplicate": Metric(MetricType.Integer, regex="Duplicate accounting requests:([0-9]+)"), "accounting_requests_malformed": Metric(MetricType.Integer, regex="Malformed accounting requests:([0-9]+)"), "bad_auth_authentication": Metric(MetricType.Integer, regex="Bad authenticators in authentication requests:([0-9]+)"), "bad_auth_accounting": Metric(MetricType.Integer, regex="Bad authenticators in accounting requests:([0-9]+)"), "bad_auth_total": Metric(MetricType.Integer, regex="Total Bad authenticators in requests:([0-9]+)"), "requests_dropped_total": Metric(MetricType.Integer, regex="Total dropped requests:([0-9]+)"), "requests_duplicate_total": Metric(MetricType.Integer, regex="Total duplicate requests:([0-9]+)"), "requests_proxied_noreply": Metric(MetricType.Integer, regex="Total proxied requests with no reply:([0-9]+)"), "requests_proxied_total": Metric(MetricType.Integer, regex="Total proxied requests:([0-9]+)"), "requests_total": Metric(MetricType.Integer, regex="Total requests:([0-9]+)"), "avg_response_time": Metric(MetricType.Float, regex="Average response time:([0-9\.]+)"), }
def _init_metrics(self): self.metrics = { "redis_version": Metric("redis_version", MetricType.String, 2, ":"), "uptime_in_seconds": Metric("uptime_in_seconds", MetricType.Integer, 14, ":"), "connected_clients": Metric("connected_clients", MetricType.Integer, 21, ":"), "client_longest_output_list": Metric("client_longest_output_list", MetricType.Integer, 22, ":"), "client_biggest_input_buf": Metric("client_biggest_input_buf", MetricType.Integer, 23, ":"), "blocked_clients": Metric("blocked_clients", MetricType.Integer, 24, ":"), "used_memory": Metric("used_memory", MetricType.Integer, 27, ":"), "used_memory_rss": Metric("used_memory_rss", MetricType.Integer, 29, ":"), "used_memory_peak": Metric("used_memory_peak", MetricType.Integer, 30, ":"), "used_memory_lua": Metric("used_memory_lua", MetricType.Integer, 32, ":"), "mem_fragmentation_ratio": Metric("mem_fragmentation_ratio", MetricType.Float, 33, ":"), "rdb_changes_since_last_save": Metric("rdb_changes_since_last_save", MetricType.Integer, 38, ":"), "rdb_last_save_time": Metric("rdb_last_save_time", MetricType.Integer, 40, ":"), "rdb_last_bgsave_status": Metric("rdb_last_bgsave_status", MetricType.String, 41, ":"), "rdb_last_bgsave_time_sec": Metric("rdb_last_bgsave_time_sec", MetricType.Integer, 42, ":"), "total_connections_received": Metric("total_connections_received", MetricType.Integer, 53, ":"), "total_commands_processed": Metric("total_commands_processed", MetricType.Integer, 54, ":"), "rejected_connections": Metric("rejected_connections", MetricType.Integer, 56, ":"), "expired_keys": Metric("expired_keys", MetricType.Integer, 60, ":"), "evicted_keys": Metric("evicted_keys", MetricType.Integer, 61, ":"), "keyspace_hits": Metric("keyspace_hits", MetricType.Integer, 62, ":"), "keyspace_misses": Metric("keyspace_misses", MetricType.Integer, 63, ":"), "connected_slaves": Metric("connected_slaves", MetricType.Integer, 70, ":"), "master_repl_offset": Metric("master_repl_offset", MetricType.Integer, 71, ":"), "used_cpu_sys": Metric("used_cpu_sys", MetricType.Float, 78, ":"), "used_cpu_user": Metric("used_cpu_user", MetricType.Float, 79, ":"), "used_cpu_sys_children": Metric("used_cpu_sys_children", MetricType.Float, 80, ":"), "used_cpu_user_children": Metric("used_cpu_user_children", MetricType.Float, 81, ":"), "keys": Metric("keys", MetricType.Integer, 0, "=", self._filter_data), "expires": Metric("expires", MetricType.Integer, 1, "=", self._filter_data), "avg_ttl": Metric("avg_ttl", MetricType.Integer, 2, "=", self._filter_data), }
def _init_metrics(self): self.metrics = { "pool": Metric(MetricType.String, regex="pool:\s*(.+)"), "process_manager": Metric(MetricType.String, regex="process manager:\s*(.+)"), "uptime": Metric(MetricType.Integer, regex="start since:\s*([0-9]+)"), "accepted_conn": Metric(MetricType.Integer, regex="accepted conn:\s*([0-9]+)"), "listen_queue": Metric(MetricType.Integer, regex="listen queue:\s*([0-9]+)"), "listen_queue_max": Metric(MetricType.Integer, regex="max listen queue:\s*([0-9]+)"), "listen_queue_len": Metric(MetricType.Integer, regex="listen queue len:\s*([0-9]+)"), "idle_processes": Metric(MetricType.Integer, regex="idle processes:\s*([0-9]+)"), "active_processes": Metric(MetricType.Integer, regex="active processes:\s*([0-9]+)"), "total_processes": Metric(MetricType.Integer, regex="total processes:\s*([0-9]+)"), "active_processes_max": Metric(MetricType.Integer, regex="max active processes:\s*([0-9]+)"), "max_children_reached": Metric(MetricType.Integer, regex="max children reached:\s*([0-9]+)"), "slow_requests": Metric(MetricType.Integer, regex="slow requests:\s*([0-9]+)"), "ping": Metric(MetricType.Float, regex=FcgiConnector.load_time_regex), "discovery": Metric(MetricType.Discovery, self._discovery), }
def _init_metrics(self): self.metrics = { "version": Metric("version", MetricType.String, 1, ":"), "uptime_sec": Metric("uptime_sec", MetricType.Integer, 7, ":"), "memmax_mb": Metric("memmax_mb", MetricType.Integer, 8, ":"), "maxsock": Metric("maxsock", MetricType.Integer, 10, ":"), "maxconn": Metric("maxconn", MetricType.Integer, 11, ":"), "maxpipes": Metric("maxpipes", MetricType.Integer, 12, ":"), "currconns": Metric("currconns", MetricType.Integer, 13, ":"), "pipesused": Metric("pipesused", MetricType.Integer, 14, ":"), "pipesfree": Metric("pipesfree", MetricType.Integer, 15, ":"), "tasks": Metric("tasks", MetricType.Integer, 16, ":"), "run_queue": Metric("run_queue", MetricType.Integer, 17, ":"), "node": Metric("node", MetricType.String, 18, ":"), "qcur": Metric("qcur", MetricType.Integer, 2, ",", self._filter_data), "qmax": Metric("qmax", MetricType.Integer, 3, ",", self._filter_data), "scur": Metric("scur", MetricType.Integer, 4, ",", self._filter_data), "smax": Metric("smax", MetricType.Integer, 5, ",", self._filter_data), "slim": Metric("slim", MetricType.Integer, 6, ",", self._filter_data), "stot": Metric("stot", MetricType.Integer, 7, ",", self._filter_data), "bin": Metric("bin", MetricType.Integer, 8, ",", self._filter_data), "bout": Metric("bout", MetricType.Integer, 9, ",", self._filter_data), "dreq": Metric("dreq", MetricType.Integer, 10, ",", self._filter_data), "dresp": Metric("dresp", MetricType.Integer, 11, ",", self._filter_data), "ereq": Metric("ereq", MetricType.Integer, 12, ",", self._filter_data), "econ": Metric("econ", MetricType.Integer, 13, ",", self._filter_data), "eresp": Metric("eresp", MetricType.Integer, 14, ",", self._filter_data), "wretr": Metric("wretr", MetricType.Integer, 15, ",", self._filter_data), "wredis": Metric("wredis", MetricType.Integer, 16, ",", self._filter_data), "status": Metric("status", MetricType.String, 17, ",", self._filter_data), "weight": Metric("weight", MetricType.Integer, 18, ",", self._filter_data), "act": Metric("act", MetricType.String, 19, ",", self._filter_data), "bck": Metric("bck", MetricType.String, 20, ",", self._filter_data), "chkfail": Metric("chkfail", MetricType.String, 21, ",", self._filter_data), "chkdown": Metric("chkdown", MetricType.String, 22, ",", self._filter_data), "lastchg": Metric("lastchg", MetricType.String, 23, ",", self._filter_data), "downtime": Metric("downtime", MetricType.String, 24, ",", self._filter_data), "qlimit": Metric("qlimit", MetricType.String, 25, ",", self._filter_data), "pid": Metric("pid", MetricType.String, 26, ",", self._filter_data), "iid": Metric("iid", MetricType.String, 27, ",", self._filter_data), "sid": Metric("sid", MetricType.String, 28, ",", self._filter_data), "throttle": Metric("throttle", MetricType.String, 29, ",", self._filter_data), "lbtot": Metric("lbtot", MetricType.Integer, 30, ",", self._filter_data), "tracked": Metric("tracked", MetricType.String, 31, ",", self._filter_data), "type": Metric("type", MetricType.String, 32, ",", self._filter_data), "rate": Metric("rate", MetricType.String, 33, ",", self._filter_data), "rate_lim": Metric("rate_lim", MetricType.String, 34, ",", self._filter_data), "rate_max": Metric("rate_max", MetricType.String, 35, ",", self._filter_data), "check_status": Metric("check_status", MetricType.String, 36, ",", self._filter_data), "check_code": Metric("check_code", MetricType.String, 37, ",", self._filter_data), "check_duration": Metric("check_duration", MetricType.String, 38, ",", self._filter_data), "hrsp_1xx": Metric("hrsp_1xx", MetricType.String, 39, ",", self._filter_data), "hrsp_2xx": Metric("hrsp_2xx", MetricType.String, 40, ",", self._filter_data), "hrsp_3xx": Metric("hrsp_3xx", MetricType.String, 41, ",", self._filter_data), "hrsp_4xx": Metric("hrsp_4xx", MetricType.String, 42, ",", self._filter_data), "hrsp_5xx": Metric("hrsp_5xx", MetricType.String, 43, ",", self._filter_data), "hrsp_other": Metric("hrsp_other", MetricType.String, 44, ",", self._filter_data), "hanafail": Metric("hanafail", MetricType.String, 45, ",", self._filter_data), "req_rate": Metric("req_rate", MetricType.String, 46, ",", self._filter_data), "req_rate_max": Metric("req_rate_max", MetricType.String, 47, ",", self._filter_data), "req_tot": Metric("req_tot", MetricType.String, 48, ",", self._filter_data), "cli_abrt": Metric("cli_abrt", MetricType.String, 49, ",", self._filter_data), "srv_abrt": Metric("srv_abrt", MetricType.String, 50, ",", self._filter_data), "discovery": Metric("discovery", MetricType.Discovery, 1, ",", self._discovery), }
def _init_metrics(self): self.metrics = { "redis_version": Metric(MetricType.String, regex="redis_version:(.+)"), "uptime_in_seconds": Metric(MetricType.Integer, regex="uptime_in_seconds:([0-9]+)"), "connected_clients": Metric(MetricType.Integer, regex="connected_clients:([0-9]+)"), "client_longest_output_list": Metric(MetricType.Integer, regex="client_longest_output_list:([0-9]+)"), "client_biggest_input_buf": Metric(MetricType.Integer, regex="client_biggest_input_buf:([0-9]+)"), "blocked_clients": Metric(MetricType.Integer, regex="blocked_clients:([0-9]+)"), "used_memory": Metric(MetricType.Integer, regex="used_memory:([0-9]+)"), "used_memory_rss": Metric(MetricType.Integer, regex="used_memory_rss:([0-9]+)"), "used_memory_peak": Metric(MetricType.Integer, regex="used_memory_peak:([0-9]+)"), "used_memory_lua": Metric(MetricType.Integer, regex="used_memory_lua:([0-9]+)"), "mem_fragmentation_ratio": Metric(MetricType.Float, regex="mem_fragmentation_ratio:([0-9\.]+)"), "rdb_changes_since_last_save": Metric(MetricType.Integer, regex="rdb_changes_since_last_save:([0-9]+)"), "rdb_last_save_time": Metric(MetricType.Integer, regex="rdb_last_save_time:([0-9]+)"), "rdb_last_bgsave_status": Metric(MetricType.String, regex="rdb_last_bgsave_status:(.+)"), "rdb_last_bgsave_time_sec": Metric(MetricType.Integer, regex="rdb_last_bgsave_time_sec:([0-9]+)"), "total_connections_received": Metric(MetricType.Integer, regex="total_connections_received:([0-9]+)"), "total_commands_processed": Metric(MetricType.Integer, regex="total_commands_processed:([0-9]+)"), "rejected_connections": Metric(MetricType.Integer, regex="rejected_connections:([0-9]+)"), "expired_keys": Metric(MetricType.Integer, regex="expired_keys:([0-9]+)"), "evicted_keys": Metric(MetricType.Integer, regex="evicted_keys:([0-9]+)"), "keyspace_hits": Metric(MetricType.Integer, regex="keyspace_hits:([0-9]+)"), "keyspace_misses": Metric(MetricType.Integer, regex="keyspace_misses:([0-9]+)"), "connected_slaves": Metric(MetricType.Integer, regex="connected_slaves:([0-9]+)"), "master_repl_offset": Metric(MetricType.Integer, regex="master_repl_offset:([0-9]+)"), "used_cpu_sys": Metric(MetricType.Float, regex="used_cpu_sys:([0-9\.]+)"), "used_cpu_user": Metric(MetricType.Float, regex="used_cpu_user:([0-9\.]+)"), "used_cpu_sys_children": Metric(MetricType.Float, regex="used_cpu_sys_children:([0-9\.]+)"), "used_cpu_user_children": Metric(MetricType.Float, regex="used_cpu_user_children:([0-9\.]+)"), "keys": Metric(MetricType.Integer, self._filter_data, regex="keys=([0-9]+)"), "expires": Metric(MetricType.Integer, self._filter_data, regex="expires=([0-9]+)"), "avg_ttl": Metric(MetricType.Integer, self._filter_data, regex="avg_ttl=([0-9]+)"), "discovery": Metric(MetricType.Discovery, self._discovery), }
def _init_metrics(self): self.metrics = { "key_read_requests": Metric(MetricType.Integer, key="key_read_requests"), "key_reads": Metric(MetricType.Integer, key="key_reads"), "key_write_requests": Metric(MetricType.Integer, key="key_write_requests"), "key_writes": Metric(MetricType.Integer, key="key_writes"), "history_list": Metric(MetricType.Integer, key="history_list"), "innodb_transactions": Metric(MetricType.Integer, key="innodb_transactions"), "read_views": Metric(MetricType.Integer, key="read_views"), "current_transactions": Metric(MetricType.Integer, key="current_transactions"), "locked_transactions": Metric(MetricType.Integer, key="locked_transactions"), "active_transactions": Metric(MetricType.Integer, key="active_transactions"), "pool_size": Metric(MetricType.Integer, key="pool_size"), "free_pages": Metric(MetricType.Integer, key="free_pages"), "database_pages": Metric(MetricType.Integer, key="database_pages"), "modified_pages": Metric(MetricType.Integer, key="modified_pages"), "pages_read": Metric(MetricType.Integer, key="pages_read"), "pages_created": Metric(MetricType.Integer, key="pages_created"), "pages_written": Metric(MetricType.Integer, key="pages_written"), "file_fsyncs": Metric(MetricType.Integer, key="file_fsyncs"), "file_reads": Metric(MetricType.Integer, key="file_reads"), "file_writes": Metric(MetricType.Integer, key="file_writes"), "log_writes": Metric(MetricType.Integer, key="log_writes"), "pending_aio_log_ios": Metric(MetricType.Integer, key="pending_aio_log_ios"), "pending_aio_sync_ios": Metric(MetricType.Integer, key="pending_aio_sync_ios"), "pending_buf_pool_flushes": Metric(MetricType.Integer, key="pending_buf_pool_flushes"), "pending_chkp_writes": Metric(MetricType.Integer, key="pending_chkp_writes"), "pending_ibuf_aio_reads": Metric(MetricType.Integer, key="pending_ibuf_aio_reads"), "pending_log_flushes": Metric(MetricType.Integer, key="pending_log_flushes"), "pending_log_writes": Metric(MetricType.Integer, key="pending_log_writes"), "pending_normal_aio_reads": Metric(MetricType.Integer, key="pending_normal_aio_reads"), "pending_normal_aio_writes": Metric(MetricType.Integer, key="pending_normal_aio_writes"), "ibuf_inserts": Metric(MetricType.Integer, key="ibuf_inserts"), "ibuf_merged": Metric(MetricType.Integer, key="ibuf_merged"), "ibuf_merges": Metric(MetricType.Integer, key="ibuf_merges"), "spin_waits": Metric(MetricType.Integer, key="spin_waits"), "spin_rounds": Metric(MetricType.Integer, key="spin_rounds"), "os_waits": Metric(MetricType.Integer, key="os_waits"), "rows_inserted": Metric(MetricType.Integer, key="rows_inserted"), "rows_updated": Metric(MetricType.Integer, key="rows_updated"), "rows_deleted": Metric(MetricType.Integer, key="rows_deleted"), "rows_read": Metric(MetricType.Integer, key="rows_read"), "table_locks_waited": Metric(MetricType.Integer, key="table_locks_waited"), "table_locks_immediate": Metric(MetricType.Integer, key="table_locks_immediate"), "slow_queries": Metric(MetricType.Integer, key="slow_queries"), "open_files": Metric(MetricType.Integer, key="open_files"), "open_tables": Metric(MetricType.Integer, key="open_tables"), "opened_tables": Metric(MetricType.Integer, key="opened_tables"), "innodb_open_files": Metric(MetricType.Integer, key="innodb_open_files"), "open_files_limit": Metric(MetricType.Integer, key="open_files_limit"), "table_open_cache": Metric(MetricType.Integer, key="table_open_cache"), "aborted_clients": Metric(MetricType.Integer, key="aborted_clients"), "aborted_connects": Metric(MetricType.Integer, key="aborted_connects"), "max_used_connections": Metric(MetricType.Integer, key="max_used_connections"), "slow_launch_threads": Metric(MetricType.Integer, key="slow_launch_threads"), "threads_cached": Metric(MetricType.Integer, key="threads_cached"), "threads_connected": Metric(MetricType.Integer, key="threads_connected"), "threads_created": Metric(MetricType.Integer, key="threads_created"), "threads_running": Metric(MetricType.Integer, key="threads_running"), "max_connections": Metric(MetricType.Integer, key="max_connections"), "thread_cache_size": Metric(MetricType.Integer, key="thread_cache_size"), "connections": Metric(MetricType.Integer, key="connections"), "slave_io_running": Metric(MetricType.Integer, key="slave_io_running"), "slave_sql_running": Metric(MetricType.Integer, key="slave_sql_running"), "slave_retried_transactions": Metric(MetricType.Integer, key="slave_retried_transactions"), "slave_lag": Metric(MetricType.Integer, key="slave_lag"), "slave_open_temp_tables": Metric(MetricType.Integer, key="slave_open_temp_tables"), "qcache_free_blocks": Metric(MetricType.Integer, key="qcache_free_blocks"), "qcache_free_memory": Metric(MetricType.Integer, key="qcache_free_memory"), "qcache_hits": Metric(MetricType.Integer, key="qcache_hits"), "qcache_inserts": Metric(MetricType.Integer, key="qcache_inserts"), "qcache_lowmem_prunes": Metric(MetricType.Integer, key="qcache_lowmem_prunes"), "qcache_not_cached": Metric(MetricType.Integer, key="qcache_not_cached"), "qcache_queries_in_cache": Metric(MetricType.Integer, key="qcache_queries_in_cache"), "qcache_total_blocks": Metric(MetricType.Integer, key="qcache_total_blocks"), "query_cache_size": Metric(MetricType.Integer, key="query_cache_size"), "questions": Metric(MetricType.Integer, key="questions"), "com_update": Metric(MetricType.Integer, key="com_update"), "com_insert": Metric(MetricType.Integer, key="com_insert"), "com_select": Metric(MetricType.Integer, key="com_select"), "com_delete": Metric(MetricType.Integer, key="com_delete"), "com_replace": Metric(MetricType.Integer, key="com_replace"), "com_load": Metric(MetricType.Integer, key="com_load"), "com_update_multi": Metric(MetricType.Integer, key="com_update_multi"), "com_insert_select": Metric(MetricType.Integer, key="com_insert_select"), "com_delete_multi": Metric(MetricType.Integer, key="com_delete_multi"), "com_replace_select": Metric(MetricType.Integer, key="com_replace_select"), "select_full_join": Metric(MetricType.Integer, key="select_full_join"), "select_full_range_join": Metric(MetricType.Integer, key="select_full_range_join"), "select_range": Metric(MetricType.Integer, key="select_range"), "select_range_check": Metric(MetricType.Integer, key="select_range_check"), "select_scan": Metric(MetricType.Integer, key="select_scan"), "sort_merge_passes": Metric(MetricType.Integer, key="sort_merge_passes"), "sort_range": Metric(MetricType.Integer, key="sort_range"), "sort_rows": Metric(MetricType.Integer, key="sort_rows"), "sort_scan": Metric(MetricType.Integer, key="sort_scan"), "created_tmp_tables": Metric(MetricType.Integer, key="created_tmp_tables"), "created_tmp_disk_tables": Metric(MetricType.Integer, key="created_tmp_disk_tables"), "created_tmp_files": Metric(MetricType.Integer, key="created_tmp_files"), "bytes_sent": Metric(MetricType.Integer, key="bytes_sent"), "bytes_received": Metric(MetricType.Integer, key="bytes_received"), "innodb_log_buffer_size": Metric(MetricType.Integer, key="innodb_log_buffer_size"), "unflushed_log": Metric(MetricType.Integer, key="unflushed_log"), "log_bytes_flushed": Metric(MetricType.Integer, key="log_bytes_flushed"), "log_bytes_written": Metric(MetricType.Integer, key="log_bytes_written"), "relay_log_space": Metric(MetricType.Integer, key="relay_log_space"), "binlog_cache_size": Metric(MetricType.Integer, key="binlog_cache_size"), "binlog_cache_disk_use": Metric(MetricType.Integer, key="binlog_cache_disk_use"), "binlog_cache_use": Metric(MetricType.Integer, key="binlog_cache_use"), "binary_log_space": Metric(MetricType.Integer, key="binary_log_space"), "innodb_locked_tables": Metric(MetricType.Integer, key="innodb_locked_tables"), "innodb_lock_structs": Metric(MetricType.Integer, key="innodb_lock_structs"), "state_closing_tables": Metric(MetricType.Integer, key="state_closing_tables"), "state_copying_to_tmp_table": Metric(MetricType.Integer, key="state_copying_to_tmp_table"), "state_end": Metric(MetricType.Integer, key="state_end"), "state_freeing_items": Metric(MetricType.Integer, key="state_freeing_items"), "state_init": Metric(MetricType.Integer, key="state_init"), "state_locked": Metric(MetricType.Integer, key="state_locked"), "state_login": Metric(MetricType.Integer, key="state_login"), "state_preparing": Metric(MetricType.Integer, key="state_preparing"), "state_reading_from_net": Metric(MetricType.Integer, key="state_reading_from_net"), "state_sending_data": Metric(MetricType.Integer, key="state_sending_data"), "state_sorting_result": Metric(MetricType.Integer, key="state_sorting_result"), "state_statistics": Metric(MetricType.Integer, key="state_statistics"), "state_updating": Metric(MetricType.Integer, key="state_updating"), "state_writing_to_net": Metric(MetricType.Integer, key="state_writing_to_net"), "state_none": Metric(MetricType.Integer, key="state_none"), "state_other": Metric(MetricType.Integer, key="state_other"), "handler_commit": Metric(MetricType.Integer, key="handler_commit"), "handler_delete": Metric(MetricType.Integer, key="handler_delete"), "handler_discover": Metric(MetricType.Integer, key="handler_discover"), "handler_prepare": Metric(MetricType.Integer, key="handler_prepare"), "handler_read_first": Metric(MetricType.Integer, key="handler_read_first"), "handler_read_key": Metric(MetricType.Integer, key="handler_read_key"), "handler_read_next": Metric(MetricType.Integer, key="handler_read_next"), "handler_read_prev": Metric(MetricType.Integer, key="handler_read_prev"), "handler_read_rnd": Metric(MetricType.Integer, key="handler_read_rnd"), "handler_read_rnd_next": Metric(MetricType.Integer, key="handler_read_rnd_next"), "handler_rollback": Metric(MetricType.Integer, key="handler_rollback"), "handler_savepoint": Metric(MetricType.Integer, key="handler_savepoint"), "handler_savepoint_rollback": Metric(MetricType.Integer, key="handler_savepoint_rollback"), "handler_update": Metric(MetricType.Integer, key="handler_update"), "handler_write": Metric(MetricType.Integer, key="handler_write"), "innodb_tables_in_use": Metric(MetricType.Integer, key="innodb_tables_in_use"), "innodb_lock_wait_secs": Metric(MetricType.Integer, key="innodb_lock_wait_secs"), "hash_index_cells_total": Metric(MetricType.Integer, key="hash_index_cells_total"), "hash_index_cells_used": Metric(MetricType.Integer, key="hash_index_cells_used"), "total_mem_alloc": Metric(MetricType.Integer, key="total_mem_alloc"), "additional_pool_alloc": Metric(MetricType.Integer, key="additional_pool_alloc"), "uncheckpointed_bytes": Metric(MetricType.Integer, key="uncheckpointed_bytes"), "ibuf_used_cells": Metric(MetricType.Integer, key="ibuf_used_cells"), "ibuf_free_cells": Metric(MetricType.Integer, key="ibuf_free_cells"), "ibuf_cell_count": Metric(MetricType.Integer, key="ibuf_cell_count"), "dictionary_mem_alloc": Metric(MetricType.Integer, key="dictionary_mem_alloc"), "innodb_sem_waits": Metric(MetricType.Integer, key="innodb_sem_waits"), "innodb_sem_wait_time_ms": Metric(MetricType.Integer, key="innodb_sem_wait_time_ms"), "key_buf_bytes_unflushed": Metric(MetricType.Integer, key="key_buf_bytes_unflushed"), "key_buf_bytes_used": Metric(MetricType.Integer, key="key_buf_bytes_used"), "key_buffer_size": Metric(MetricType.Integer, key="key_buffer_size"), "innodb_row_lock_time": Metric(MetricType.Integer, key="innodb_row_lock_time"), "innodb_row_lock_waits": Metric(MetricType.Integer, key="innodb_row_lock_waits"), "query_time_count_00": Metric(MetricType.Integer, key="query_time_count_00"), "query_time_count_01": Metric(MetricType.Integer, key="query_time_count_01"), "query_time_count_02": Metric(MetricType.Integer, key="query_time_count_02"), "query_time_count_03": Metric(MetricType.Integer, key="query_time_count_03"), "query_time_count_04": Metric(MetricType.Integer, key="query_time_count_04"), "query_time_count_05": Metric(MetricType.Integer, key="query_time_count_05"), "query_time_count_06": Metric(MetricType.Integer, key="query_time_count_06"), "query_time_count_07": Metric(MetricType.Integer, key="query_time_count_07"), "query_time_count_08": Metric(MetricType.Integer, key="query_time_count_08"), "query_time_count_09": Metric(MetricType.Integer, key="query_time_count_09"), "query_time_count_10": Metric(MetricType.Integer, key="query_time_count_10"), "query_time_count_11": Metric(MetricType.Integer, key="query_time_count_11"), "query_time_count_12": Metric(MetricType.Integer, key="query_time_count_12"), "query_time_count_13": Metric(MetricType.Integer, key="query_time_count_13"), "query_time_total_00": Metric(MetricType.Integer, key="query_time_total_00"), "query_time_total_01": Metric(MetricType.Integer, key="query_time_total_01"), "query_time_total_02": Metric(MetricType.Integer, key="query_time_total_02"), "query_time_total_03": Metric(MetricType.Integer, key="query_time_total_03"), "query_time_total_04": Metric(MetricType.Integer, key="query_time_total_04"), "query_time_total_05": Metric(MetricType.Integer, key="query_time_total_05"), "query_time_total_06": Metric(MetricType.Integer, key="query_time_total_06"), "query_time_total_07": Metric(MetricType.Integer, key="query_time_total_07"), "query_time_total_08": Metric(MetricType.Integer, key="query_time_total_08"), "query_time_total_09": Metric(MetricType.Integer, key="query_time_total_09"), "query_time_total_10": Metric(MetricType.Integer, key="query_time_total_10"), "query_time_total_11": Metric(MetricType.Integer, key="query_time_total_11"), "query_time_total_12": Metric(MetricType.Integer, key="query_time_total_12"), "query_time_total_13": Metric(MetricType.Integer, key="query_time_total_13"), "wsrep_replicated_bytes": Metric(MetricType.Integer, key="wsrep_replicated_bytes"), "wsrep_received_bytes": Metric(MetricType.Integer, key="wsrep_received_bytes"), "wsrep_replicated": Metric(MetricType.Integer, key="wsrep_replicated"), "wsrep_received": Metric(MetricType.Integer, key="wsrep_received"), "wsrep_local_cert_failures": Metric(MetricType.Integer, key="wsrep_local_cert_failures"), "wsrep_local_bf_aborts": Metric(MetricType.Integer, key="wsrep_local_bf_aborts"), "wsrep_local_send_queue": Metric(MetricType.Integer, key="wsrep_local_send_queue"), "wsrep_local_recv_queue": Metric(MetricType.Integer, key="wsrep_local_recv_queue"), "wsrep_cluster_size": Metric(MetricType.Integer, key="wsrep_cluster_size"), "wsrep_cert_deps_distance": Metric(MetricType.Integer, key="wsrep_cert_deps_distance"), "wsrep_apply_window": Metric(MetricType.Integer, key="wsrep_apply_window"), "wsrep_commit_window": Metric(MetricType.Integer, key="wsrep_commit_window"), "wsrep_flow_control_paused": Metric(MetricType.Integer, key="wsrep_flow_control_paused"), "wsrep_flow_control_sent": Metric(MetricType.Integer, key="wsrep_flow_control_sent"), "wsrep_flow_control_recv": Metric(MetricType.Integer, key="wsrep_flow_control_recv"), "pool_reads": Metric(MetricType.Integer, key="pool_reads"), "pool_read_requests": Metric(MetricType.Integer, key="pool_read_requests"), "version": Metric(MetricType.String, key="version"), }
def _init_metrics(self): self.metrics = { "total_accesses": Metric(MetricType.Integer, regex="Total Accesses: ([0-9]+)"), "total_traffic": Metric(MetricType.Integer, regex="Total kBytes: ([0-9]+)"), "cpuload": Metric(MetricType.Float, regex="CPULoad: ([0-9\.]+)"), "uptime": Metric(MetricType.Integer, regex="Uptime: ([0-9]+)"), "req_per_sec": Metric(MetricType.Float, regex="ReqPerSec: ([0-9\.]+)"), "bytes_per_sec": Metric(MetricType.Float, regex="BytesPerSec: ([0-9\.]+)"), "bytes_per_req": Metric(MetricType.Float, regex="BytesPerReq: ([0-9\.]+)"), "workers_busy": Metric(MetricType.Integer, regex="BusyWorkers: ([0-9]+)"), "workers_idle": Metric(MetricType.Integer, regex="IdleWorkers: ([0-9]+)"), "workers_closing": Metric(MetricType.Integer, self._parse_scoreboard, key="C"), "workers_dns": Metric(MetricType.Integer, self._parse_scoreboard, key="D"), "workers_finishing": Metric(MetricType.Integer, self._parse_scoreboard, key="G"), "workers_idlecleanup": Metric(MetricType.Integer, self._parse_scoreboard, key="I"), "workers_keepalive": Metric(MetricType.Integer, self._parse_scoreboard, key="K"), "workers_logging": Metric(MetricType.Integer, self._parse_scoreboard, key="L"), "workers_openslot": Metric(MetricType.Integer, self._parse_scoreboard, key="."), "workers_reading": Metric(MetricType.Integer, self._parse_scoreboard, key="R"), "workers_starting": Metric(MetricType.Integer, self._parse_scoreboard, key="S"), "workers_writing": Metric(MetricType.Integer, self._parse_scoreboard, key="W"), "ping": Metric(MetricType.Float, regex=UrlConnector.load_time_regex), }