Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Dict Str Str Str Str Str Str Str Str Str Dict Str NameLoad NameLoad ListLoad Dict Str Str Str Str Str Str Str Str Dict Str Str Str Str Str Str Str Str Assign NameStore ListLoad Dict Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Assign NameStore ListLoad Str Assign NameStore ListLoad Str Assign NameStore ListLoad Str Str Assign NameStore ListLoad Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Num Assign NameStore Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareGt BinOpSub NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num For NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr ListLoad Str keyword Num Expr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr Str keyword Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Expr Call AttributeLoad NameLoad attr decorator_list decorator_list Call NameLoad keyword Str
N/A nose.plugins.attrib attr checks AgentCheck tests.checks.common AgentCheckTest TestMySql N/A AgentCheckTest N/A N/A CHECK_NAME mysql N/A METRIC_TAGS N/A tag1 tag2 N/A SC_TAGS N/A host:localhost port:0 N/A MYSQL_CONFIG N/A N/A server user pass options tags queries localhost dog dog N/A replication True METRIC_TAGS N/A N/A query metric type field SELECT * from testdb.users where name='Alice' limit 1; alice.age gauge age N/A query metric type field SELECT * from testdb.users where name='Bob' limit 1; bob.age gauge age N/A CONNECTION_FAILURE N/A N/A server user pass localhost unknown dog N/A INNODB_METRICS N/A mysql.innodb.buffer_pool_free mysql.innodb.buffer_pool_used mysql.innodb.buffer_pool_total mysql.innodb.buffer_pool_utilization N/A REPLICATION_METRICS N/A mysql.replication.slave_running N/A KEY_CACHE N/A mysql.performance.key_cache_utilization N/A SYSTEM_METRICS N/A mysql.performance.user_time mysql.performance.kernel_time N/A COMMON_GAUGES N/A mysql.net.max_connections mysql.performance.open_files mysql.performance.table_locks_waited mysql.performance.threads_connected mysql.performance.threads_running mysql.performance.open_tables N/A COMMON_RATES N/A mysql.net.connections mysql.innodb.data_reads mysql.innodb.data_writes mysql.innodb.os_log_fsyncs mysql.performance.slow_queries mysql.performance.questions mysql.performance.queries mysql.performance.com_select mysql.performance.com_insert mysql.performance.com_update mysql.performance.com_delete mysql.performance.com_insert_select mysql.performance.com_update_multi mysql.performance.com_delete_multi mysql.performance.com_replace_select mysql.performance.qcache_hits mysql.performance.created_tmp_tables mysql.performance.created_tmp_disk_tables mysql.performance.created_tmp_files mysql.innodb.row_lock_waits mysql.innodb.row_lock_time _test_optional_metrics N/A N/A self optional_metrics at_least N/A N/A N/A 
        Check optional metrics - there should be at least `at_least` matches
         N/A before N/A len N/A filter N/A N/A N/A m N/A N/A N/A N/A m N/A 3 get tested N/A self metrics N/A mname optional_metrics N/A N/A N/A N/A self assertMetric mname tags N/A self METRIC_TAGS at_least 0 N/A after N/A len N/A filter N/A N/A N/A m N/A N/A N/A N/A m N/A 3 get tested N/A self metrics N/A N/A N/A self assertTrue N/A N/A after before at_least N/A test_check N/A N/A self N/A N/A N/A config N/A instances N/A self MYSQL_CONFIG N/A N/A N/A self run_check_twice config N/A N/A N/A self assertServiceCheck mysql.can_connect status N/A AgentCheck OK tags N/A self SC_TAGS count 1 N/A mname N/A N/A N/A N/A N/A N/A self INNODB_METRICS N/A self SYSTEM_METRICS N/A self REPLICATION_METRICS N/A self KEY_CACHE N/A self COMMON_GAUGES N/A self COMMON_RATES N/A N/A N/A N/A self assertMetric mname tags N/A self METRIC_TAGS count 1 N/A N/A N/A self assertServiceMetadata N/A version count 1 N/A N/A N/A self assertMetric alice.age value 25 N/A N/A N/A self assertMetric bob.age value 20 N/A N/A N/A self coverage_report N/A test_connection_failure N/A N/A self N/A N/A N/A 
        Service check reports connection failure
         N/A config N/A instances N/A self CONNECTION_FAILURE N/A N/A N/A self assertRaises Exception N/A N/A N/A N/A N/A N/A self run_check config N/A N/A N/A self assertServiceCheck mysql.can_connect status N/A AgentCheck CRITICAL tags N/A self SC_TAGS count 1 N/A N/A N/A self coverage_report N/A N/A N/A attr requires mysql